Merge pull request #712 from Dmitry-Me/removeDuplicateChecks2

Remove duplicate check
This commit is contained in:
PKEuS 2015-12-02 16:02:31 +01:00
commit 5e441e471d
1 changed files with 5 additions and 4 deletions

View File

@ -137,12 +137,13 @@ void CheckOther::clarifyCalculation()
for (; tok2; tok2 = tok2->next()) { for (; tok2; tok2 = tok2->next()) {
if (tok2->str() == "(") if (tok2->str() == "(")
tok2 = tok2->link(); tok2 = tok2->link();
else if (tok2->str() == ")" || tok2->str() == "?") else if (tok2->str() == ")")
break; break;
else if (tok2->str() == "?") {
clarifyCalculationError(tok, tok->astOperand1()->str());
break;
}
} }
if (tok2 && tok2->str() == "?")
clarifyCalculationError(tok, tok->astOperand1()->str());
} }
} }
} }