Merge pull request #727 from Dmitry-Me/fixC4706

Fix C4706 assignment within conditional
This commit is contained in:
orbitcowboy 2015-12-15 10:58:14 +01:00
commit 66897a95f4
1 changed files with 1 additions and 1 deletions

View File

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