From e6dc90176172d624cd943b0b3a2f965e83d9484e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 28 Mar 2012 18:33:34 +0200 Subject: [PATCH] Fixed #3574 (false positive: check sign of unsigned variable (type cast)) --- lib/checkother.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.h b/lib/checkother.h index ec0e55dde..aae99bb8a 100644 --- a/lib/checkother.h +++ b/lib/checkother.h @@ -72,6 +72,7 @@ public: checkOther.checkVariableScope(); checkOther.clarifyCondition(); // not simplified because ifAssign checkOther.checkComparisonOfBoolExpressionWithInt(); + checkOther.checkSignOfUnsignedVariable(); // don't ignore casts (#3574) } /** @brief Run checks against the simplified token list */ @@ -101,7 +102,6 @@ public: checkOther.checkAlwaysTrueOrFalseStringCompare(); checkOther.checkAssignBoolToPointer(); - checkOther.checkSignOfUnsignedVariable(); checkOther.checkBitwiseOnBoolean(); checkOther.checkDoubleFree(); }