fixed compiler Warning in lib/checkbufferoverrun about comparison of signed and unsigned variable
This commit is contained in:
parent
e5a2c6426b
commit
d16944398a
|
@ -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