Skip to content

Commit 51469d1

Browse files
Update checkcondition.cpp
1 parent d44e45c commit 51469d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/checkcondition.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,6 +1946,8 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
19461946
for (const Token* tok = scope->bodyStart; tok != scope->bodyEnd; tok = tok->next()) {
19471947
if (!tok->isComparisonOp() || !tok->isBinaryOp())
19481948
continue;
1949+
if (diag(tok))
1950+
continue;
19491951

19501952
for (int i = 0; i < 2; ++i) {
19511953
const Token * const valueTok = (i == 0) ? tok->astOperand1() : tok->astOperand2();

0 commit comments

Comments
 (0)