error: invalid operands to binary expression ('llvm::APSInt' and 'int')
Change-Id: I1a509ce133954a31a504dcc178687427f85f4c1c
This commit is contained in:
@@ -1191,7 +1191,7 @@ void StringConstant::handleOUStringCtor(
|
||||
&& e3->getArg(0)->IgnoreParenImpCasts()->isIntegerConstantExpr(
|
||||
res, compiler.getASTContext()))
|
||||
{
|
||||
if (res > 0 && res <= 127) {
|
||||
if (res > static_cast<APSInt>(0) && res <= static_cast<APSInt>(127)) {
|
||||
report(
|
||||
DiagnosticsEngine::Warning,
|
||||
("in call of %0, replace OUString constructed from a (non-NUL)"
|
||||
|
Reference in New Issue
Block a user