Fixed compiler warning 'conversion from unsigned long to unsigned int, may loose value'
This commit is contained in:
parent
6f988873aa
commit
088664d626
|
@ -2801,7 +2801,7 @@ bool Tokenizer::simplifySizeof()
|
|||
if (size == 0)
|
||||
continue;
|
||||
|
||||
sizeOfVar[varId] = size * static_cast<unsigned long>(MathLib::toLongNumber(tok->strAt(2)));
|
||||
sizeOfVar[varId] = size * static_cast<unsigned int>(MathLib::toLongNumber(tok->strAt(2)));
|
||||
}
|
||||
|
||||
else if (Token::Match(tok->previous(), "%type% %var% [ %num% ] [,)]") ||
|
||||
|
|
Loading…
Reference in New Issue