Fixed Visual Studio compiler warnings

This commit is contained in:
Daniel Marjamäki 2011-12-01 18:32:14 +01:00
parent 93b21c6cc5
commit c7e2a198cb
2 changed files with 4 additions and 4 deletions

View File

@ -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; std::ostringstream expression;
expression << std::hex << "(X & 0x" << value1 << ") " << op << " 0x" << value2; expression << std::hex << "(X & 0x" << value1 << ") " << op << " 0x" << value2;

View File

@ -23,7 +23,7 @@
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#include "check.h" #include "check.h"
#include "mathlib.h"
/// @addtogroup Checks /// @addtogroup Checks
/// @{ /// @{
@ -65,9 +65,9 @@ private:
void assignIfError(const Token *tok, bool result); void assignIfError(const Token *tok, bool result);
void comparisonError(const Token *tok, void comparisonError(const Token *tok,
int value1, MathLib::bigint value1,
const std::string &op, const std::string &op,
int value2, MathLib::bigint value2,
bool result); bool result);
void multiConditionError(const Token *tok, unsigned int line1); void multiConditionError(const Token *tok, unsigned int line1);