Fixed #2074 ('Internal error in Cppcheck' on complex function typedef (even 2 typedefs!))

This commit is contained in:
Robert Reif 2010-10-06 05:43:07 +02:00 committed by Daniel Marjamäki
parent 7b4e08385d
commit 02027eb750
1 changed files with 1 additions and 1 deletions

View File

@ -826,7 +826,7 @@ void Tokenizer::simplifyTypedef()
typeStart = tok->next(); typeStart = tok->next();
offset = 1; offset = 1;
if (Token::Match(typeStart, "const")) while (Token::Match(tok->tokAt(offset), "const|signed|unsigned"))
offset++; offset++;
typeEnd = tok->tokAt(offset++); typeEnd = tok->tokAt(offset++);