Getting rid of warning C4267: 'return' : conversion from 'size_t' to 'unsigned int'

This commit is contained in:
Reijo Tomperi 2009-10-11 17:40:50 +03:00
parent de70874084
commit cbe9fcad9f
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ unsigned int Tokenizer::sizeOfType(const Token *type) const
return 0;
if (type->str()[0] == '"')
return (Token::getStrLength(type) + 1);
return static_cast<unsigned int>(Token::getStrLength(type) + 1);
std::map<std::string, unsigned int>::const_iterator it = _typeSize.find(type->strAt(0));
if (it == _typeSize.end())