Kaydet (Commit) 38ea4f01 authored tarafından Noel Grandin's avatar Noel Grandin

error: invalid operands to binary expression ('llvm::APSInt' and 'int')

Change-Id: I1a509ce133954a31a504dcc178687427f85f4c1c
üst 25603e07
......@@ -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)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment