We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 692083a commit f097cabCopy full SHA for f097cab
1 file changed
lib/checkcondition.cpp
@@ -1986,7 +1986,7 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
1986
default:
1987
break;
1988
}
1989
- if (bits == 0 || bits >= 64)
+ if (bits == 0 || bits >= 63)
1990
continue;
1991
1992
const auto typeMinValue = (typeTok->valueType()->sign == ValueType::Sign::UNSIGNED) ? 0 : (-(1LL << (bits-1)));
0 commit comments