diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-25 13:48:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-25 13:48:11 +0200 |
commit | 38ea4f018e795aa2b191509d2c1f56b76191f079 (patch) | |
tree | 7f39556c6974932d647175b70f679379ebd47d69 /compilerplugins | |
parent | remove custom RTTI from SwIndex (diff) | |
download | core-38ea4f018e795aa2b191509d2c1f56b76191f079.tar.gz core-38ea4f018e795aa2b191509d2c1f56b76191f079.zip |
error: invalid operands to binary expression ('llvm::APSInt' and 'int')
Change-Id: I1a509ce133954a31a504dcc178687427f85f4c1c
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 9c869218f6cb..5ffec1b21114 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -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)" |