From 23d37e5e7b03e4c3e932cfcd18f754446e2d4507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 12 Sep 2021 19:41:35 +0200 Subject: [PATCH] Fix crash in daca@home --- lib/checkcondition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 7e217b7f1..e160cf53a 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -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;