summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-25 13:48:11 +0200
committerNoel Grandin <noel@peralex.com>2015-06-25 13:48:11 +0200
commit38ea4f018e795aa2b191509d2c1f56b76191f079 (patch)
tree7f39556c6974932d647175b70f679379ebd47d69 /compilerplugins
parent25603e07974d85a7c6b3cebe288068955a0030a1 (diff)
error: invalid operands to binary expression ('llvm::APSInt' and 'int')
Change-Id: I1a509ce133954a31a504dcc178687427f85f4c1c
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/stringconstant.cxx2
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)"