Merge branch 'master' of github.com:danmar/cppcheck
This commit is contained in:
commit
81c058f2be
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue