src/checkbufferoverrun.cpp: fixed regression.
test suite was broken after my
e8c83613e4
commit.
This commit is contained in:
parent
e8c83613e4
commit
342e71803f
|
@ -256,7 +256,7 @@ void CheckBufferOverrun::checkScope(const Token *tok, const char *varname[], con
|
||||||
}
|
}
|
||||||
else if (Token::Match(tok2, "%varid% <= %num% ;", counter_varid))
|
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);
|
max_counter_value = tok2->strAt(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue