From 3d0926936f00f24b97cd714a5dcd3cbcb9db7b83 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Mon, 1 Jun 2009 16:59:35 +0700 Subject: [PATCH] Tokenizer::simplifyTokenList: use SizeOfType(). No functional change. --- src/tokenize.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 11d14ffc6..676cb2fc4 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -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++)