diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-14 11:29:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-14 11:30:15 +0100 |
commit | 8edec7c89f4dc927afdfe51b13af2f59b1600b85 (patch) | |
tree | 2d163b09a12e63fb088fccfca16a3b596d714b0e /compilerplugins | |
parent | ffa3b434c1524404c3358bdf14cd662a7c88f134 (diff) |
-Wsign-compare
Change-Id: I81a7fac291c46a0ee6da76ab3e29c53ad0678b66
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/implicitboolconversion.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index 34eaec8c0ccc..30c59c9faed5 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) |