Fix crash in daca@home
This commit is contained in:
parent
b455f847ba
commit
23d37e5e7b
|
@ -1812,7 +1812,7 @@ void CheckCondition::checkCompareValueOutOfTypeRange()
|
|||
long long typeMaxValue;
|
||||
if (typeTok->valueType()->sign != ValueType::Sign::SIGNED)
|
||||
typeMaxValue = unsignedTypeMaxValue;
|
||||
else if (bits >= mSettings->int_bit && valueTok->valueType()->sign != ValueType::Sign::SIGNED)
|
||||
else if (bits >= mSettings->int_bit && (!valueTok->valueType() || valueTok->valueType()->sign != ValueType::Sign::SIGNED))
|
||||
typeMaxValue = unsignedTypeMaxValue;
|
||||
else
|
||||
typeMaxValue = unsignedTypeMaxValue / 2;
|
||||
|
|
Loading…
Reference in New Issue