We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6807a4 commit d0bf6bcCopy full SHA for d0bf6bc
1 file changed
lib/checkcondition.cpp
@@ -1970,6 +1970,8 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
1970
continue;
1971
if (valueTok->getKnownIntValue() < 0 && valueTok->valueType() && valueTok->valueType()->sign != ValueType::Sign::SIGNED)
1972
1973
+ if (typeTok->isLiteral())
1974
+ continue;
1975
std::uint8_t bits = 0;
1976
switch (typeTok->valueType()->type) {
1977
case ValueType::Type::BOOL:
0 commit comments