Avoid evaluating conditions twice when there isnt a value to evaluate (#5711)
This commit is contained in:
parent
831dc7c3ae
commit
7e8ea5bcf9
|
@ -208,6 +208,8 @@ static bool evaluateCondition(const std::string& op,
|
||||||
evaluateCondition(op, r, condition->astOperand2(), pm, settings)) {
|
evaluateCondition(op, r, condition->astOperand2(), pm, settings)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (!pm.hasValue(condition->exprId()))
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
MathLib::bigint result = 0;
|
MathLib::bigint result = 0;
|
||||||
bool error = false;
|
bool error = false;
|
||||||
|
|
Loading…
Reference in New Issue