Change fix for hang so there won't be FP
This commit is contained in:
parent
bdfe43d82c
commit
f0cb6ef33d
|
@ -1268,8 +1268,12 @@ static void valueFlowForLoopSimplify(Token * const bodyStart, const unsigned int
|
|||
while (parent && parent->str() == tok2->str())
|
||||
parent = parent->astParent();
|
||||
// Jump to end of condition
|
||||
if (parent && parent->str() == "(" && parent->astOperand2())
|
||||
if (parent && parent->str() == "(") {
|
||||
tok2 = parent->link();
|
||||
// cast
|
||||
if (Token::simpleMatch(tok2, ") ("))
|
||||
tok2 = tok2->linkAt(1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue