Tokenizer: Fixed bug in last commit

This commit is contained in:
Daniel Marjamäki 2011-04-10 09:18:37 +02:00
parent 4c753ca5ac
commit f4f8aeca03
1 changed files with 1 additions and 2 deletions

View File

@ -5132,8 +5132,7 @@ bool Tokenizer::simplifyConditions()
tok->tokAt(2)->str((tok->tokAt(2)->str() != "0") ? "true" : "false");
ret = true;
}
Token *tok2 = tok->tokAt(2);
if (Token::Match(tok2, "&&|%oror% %num% )|%oror%|&&"))
if (Token::Match(tok, "&&|%oror% %num% )|%oror%|&&"))
{
tok->next()->str((tok->next()->str() != "0") ? "true" : "false");
ret = true;