Skip to content

Commit e364454

Browse files
Update checkcondition.cpp
1 parent 483fd51 commit e364454

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
@@ -2013,6 +2013,8 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
20132013

20142014
bool result{};
20152015
const auto kiv = valueTok->getKnownIntValue();
2016+
if (kiv == 0)
2017+
continue; // prevent overlap with TestOther::unsignedPositive/unsignedLessThanZero
20162018
if (tok->str() == "==")
20172019
result = false;
20182020
else if (tok->str() == "!=")

0 commit comments

Comments
 (0)