src/checkbufferoverrun.cpp: fixed regression.

test suite was broken after my
e8c83613e4 commit.
This commit is contained in:
Slava Semushin 2009-09-27 23:03:11 +07:00
parent e8c83613e4
commit 342e71803f
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ void CheckBufferOverrun::checkScope(const Token *tok, const char *varname[], con
}
else if (Token::Match(tok2, "%varid% <= %num% ;", counter_varid))
{
value = std::atoi(tok2->strAt(2));
value = std::atoi(tok2->strAt(2)) + 1;
max_counter_value = tok2->strAt(2);
}
}