1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Made (a && b) always evaluate to 'bool' even when 'a' doesn't eval

This commit is contained in:
Brian Fiete 2022-02-14 06:42:12 -05:00
parent 322b83d1c6
commit 43d8677598

View file

@ -21238,6 +21238,7 @@ void BfExprEvaluator::PerformBinaryOperation(BfExpression* leftExpression, BfExp
if (!leftValue)
{
mModule->CreateValueFromExpression(rightExpression);
mResult = mModule->GetDefaultTypedValue(boolType, false, BfDefaultValueKind_Undef);
return;
}