From c7e2a198cbd7143c92b97e87288ea69599b0e3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 1 Dec 2011 18:32:14 +0100 Subject: [PATCH] Fixed Visual Studio compiler warnings --- lib/checkassignif.cpp | 2 +- lib/checkassignif.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/checkassignif.cpp b/lib/checkassignif.cpp index 4a497634a..24da97272 100644 --- a/lib/checkassignif.cpp +++ b/lib/checkassignif.cpp @@ -112,7 +112,7 @@ void CheckAssignIf::comparison() } } -void CheckAssignIf::comparisonError(const Token *tok, int value1, const std::string &op, int value2, bool result) +void CheckAssignIf::comparisonError(const Token *tok, MathLib::bigint value1, const std::string &op, MathLib::bigint value2, bool result) { std::ostringstream expression; expression << std::hex << "(X & 0x" << value1 << ") " << op << " 0x" << value2; diff --git a/lib/checkassignif.h b/lib/checkassignif.h index f78326cb8..c2629bd65 100644 --- a/lib/checkassignif.h +++ b/lib/checkassignif.h @@ -23,7 +23,7 @@ //--------------------------------------------------------------------------- #include "check.h" - +#include "mathlib.h" /// @addtogroup Checks /// @{ @@ -65,9 +65,9 @@ private: void assignIfError(const Token *tok, bool result); void comparisonError(const Token *tok, - int value1, + MathLib::bigint value1, const std::string &op, - int value2, + MathLib::bigint value2, bool result); void multiConditionError(const Token *tok, unsigned int line1);