From 06ec4d9a84d571ace74e71913d6c218ece377ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 4 Nov 2010 20:52:20 +0100 Subject: [PATCH] GCC: Fixed compiler warnings about sign-conversion --- lib/checkother.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index beae82e8e..11e7803f0 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -246,10 +246,10 @@ void CheckOther::checkIncorrectLogicOperator() if (logicTok && (logicTok->strAt(-1) != "&&")) { // (var11 != var12) || (var21 != var22) - const int varId11 = term1Tok->varId(); - const int varId12 = term1Tok->tokAt(2)->varId(); - const int varId21 = term2Tok->varId(); - const int varId22 = term2Tok->tokAt(2)->varId(); + const unsigned int varId11 = term1Tok->varId(); + const unsigned int varId12 = term1Tok->tokAt(2)->varId(); + const unsigned int varId21 = term2Tok->varId(); + const unsigned int varId22 = term2Tok->tokAt(2)->varId(); // (var != const1) || (var != const2) if (Token::Match(term1Tok, "%var%") &&