Merge branch 'master' of github.com:danmar/cppcheck

This commit is contained in:
Daniel Marjamäki 2010-08-05 19:02:21 +02:00
commit 81c058f2be
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% ]"))
{
long index = MathLib::toLongNumber(ftok->strAt(2));
unsigned long index = MathLib::toLongNumber(ftok->strAt(2));
if (index >= arrayInfo.num[0])
{
std::list<const Token *> callstack;