Tokenizer::simplifyTokenList: use SizeOfType().

No functional change.
This commit is contained in:
Slava Semushin 2009-06-01 16:59:35 +07:00
parent fa5cdcb128
commit 3d0926936f
1 changed files with 1 additions and 2 deletions

View File

@ -1233,8 +1233,7 @@ void Tokenizer::simplifyTokenList()
if (Token::Match(tok, "sizeof ( %type% * )"))
{
std::ostringstream str;
// 'sizeof(type *)' has the same size as 'sizeof(char *)'
str << sizeof(char *);
str << SizeOfType(tok->strAt(3));
tok->str(str.str().c_str());
for (int i = 0; i < 4; i++)