[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Fri Feb 14 11:30:46 CET 2014
compilerplugins/clang/implicitboolconversion.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 8edec7c89f4dc927afdfe51b13af2f59b1600b85
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Feb 14 11:29:59 2014 +0100
-Wsign-compare
Change-Id: I81a7fac291c46a0ee6da76ab3e29c53ad0678b66
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx
index 34eaec8..30c59c9 100644
--- a/compilerplugins/clang/implicitboolconversion.cxx
+++ b/compilerplugins/clang/implicitboolconversion.cxx
@@ -184,7 +184,9 @@ bool ImplicitBoolConversion::TraverseCallExpr(CallExpr * expr) {
} else {
std::ptrdiff_t n = j - expr->arg_begin();
assert(n >= 0);
- assert(n < compat::getNumParams(*t) || t->isVariadic());
+ assert(
+ static_cast<std::size_t>(n) < compat::getNumParams(*t)
+ || t->isVariadic());
if (n < compat::getNumParams(*t)
&& !(compat::getParamType(*t, n)->isSpecificBuiltinType(
BuiltinType::Int)
More information about the Libreoffice-commits
mailing list