Fix C4706 assignment within conditional
This commit is contained in:
parent
0baad496f2
commit
4a8a5d4460
|
@ -1073,7 +1073,7 @@ void TokenList::validateAst()
|
||||||
|
|
||||||
// check for endless recursion
|
// check for endless recursion
|
||||||
const Token* parent=tok;
|
const Token* parent=tok;
|
||||||
while ((parent = parent->astParent())) {
|
while ((parent = parent->astParent()) != nullptr) {
|
||||||
if (parent==tok)
|
if (parent==tok)
|
||||||
throw InternalError(tok, "AST broken: endless recursion from '" + tok->str() + "'", InternalError::SYNTAX);
|
throw InternalError(tok, "AST broken: endless recursion from '" + tok->str() + "'", InternalError::SYNTAX);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue