[Libreoffice-commits] core.git: compilerplugins/clang

Matúš Kukan matus.kukan at collabora.com
Fri Feb 14 12:38:53 CET 2014


 compilerplugins/clang/implicitboolconversion.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit caedbd44ba3a5431e850e6c0bb3ebf808cb97839
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Fri Feb 14 12:37:03 2014 +0100

    one more -Werror,-Wsign-compare
    
    Change-Id: I3139021c07db6efe16895e10c0539a8bc60aac9c

diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx
index 30c59c9..740f767 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(


More information about the Libreoffice-commits mailing list