Skip to content

Commit f097cab

Browse files
committed
Fix
1 parent 692083a commit f097cab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkcondition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
19861986
default:
19871987
break;
19881988
}
1989-
if (bits == 0 || bits >= 64)
1989+
if (bits == 0 || bits >= 63)
19901990
continue;
19911991

19921992
const auto typeMinValue = (typeTok->valueType()->sign == ValueType::Sign::UNSIGNED) ? 0 : (-(1LL << (bits-1)));

0 commit comments

Comments
 (0)