Change fix for hang so there won't be FP

This commit is contained in:
Daniel Marjamäki 2014-08-13 05:36:17 +02:00
parent bdfe43d82c
commit f0cb6ef33d
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}
}
}