diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-14 12:37:03 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-14 12:37:45 +0100 |
commit | caedbd44ba3a5431e850e6c0bb3ebf808cb97839 (patch) | |
tree | 4ffae4cffacf8aa04d1bf48925679e31e3a4bc94 /compilerplugins/clang | |
parent | cf4e5e497974edc5d19d6899fbe01cdf2451b341 (diff) |
one more -Werror,-Wsign-compare
Change-Id: I3139021c07db6efe16895e10c0539a8bc60aac9c
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/implicitboolconversion.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index 30c59c9faed5..740f76724b60 100644 --- a/compilerplugins/clang/implicitboolconversion.cxx +++ b/compilerplugins/clang/implicitboolconversion.cxx @@ -187,7 +187,7 @@ bool ImplicitBoolConversion::TraverseCallExpr(CallExpr * expr) { assert( static_cast<std::size_t>(n) < compat::getNumParams(*t) || t->isVariadic()); - if (n < compat::getNumParams(*t) + if (static_cast<std::size_t>(n) < compat::getNumParams(*t) && !(compat::getParamType(*t, n)->isSpecificBuiltinType( BuiltinType::Int) || (compat::getParamType(*t, n)->isSpecificBuiltinType( |