Fixed compiler warning 'conversion from unsigned long to unsigned int, may loose value'

This commit is contained in:
Daniel Marjamäki 2014-03-31 06:50:59 +02:00
parent 6f988873aa
commit 088664d626
1 changed files with 1 additions and 1 deletions

View File

@ -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% ] [,)]") ||