fixed compiler Warning in lib/checkbufferoverrun about comparison of signed and unsigned variable

This commit is contained in:
Ettl Martin 2010-08-05 18:58:58 +02:00
parent e5a2c6426b
commit d16944398a
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ void CheckBufferOverrun::checkFunctionCall(const Token &tok, unsigned int par, c
{ {
if (Token::Match(ftok->previous(), "[=+-*/;{}] %var% [ %num% ]")) if (Token::Match(ftok->previous(), "[=+-*/;{}] %var% [ %num% ]"))
{ {
long index = MathLib::toLongNumber(ftok->strAt(2)); unsigned long index = MathLib::toLongNumber(ftok->strAt(2));
if (index >= arrayInfo.num[0]) if (index >= arrayInfo.num[0])
{ {
std::list<const Token *> callstack; std::list<const Token *> callstack;