Fix C4706 assignment within conditional

This commit is contained in:
Dmitry-Me 2015-12-15 11:34:04 +03:00
parent 0baad496f2
commit 4a8a5d4460
1 changed files with 1 additions and 1 deletions

View File

@ -1073,7 +1073,7 @@ void TokenList::validateAst()
// check for endless recursion
const Token* parent=tok;
while ((parent = parent->astParent())) {
while ((parent = parent->astParent()) != nullptr) {
if (parent==tok)
throw InternalError(tok, "AST broken: endless recursion from '" + tok->str() + "'", InternalError::SYNTAX);
}