Tokenizer: Fixed bug in last commit
This commit is contained in:
parent
4c753ca5ac
commit
f4f8aeca03
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue