mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Made (a && b) always evaluate to 'bool' even when 'a' doesn't eval
This commit is contained in:
parent
322b83d1c6
commit
43d8677598
1 changed files with 1 additions and 0 deletions
|
@ -21238,6 +21238,7 @@ void BfExprEvaluator::PerformBinaryOperation(BfExpression* leftExpression, BfExp
|
||||||
if (!leftValue)
|
if (!leftValue)
|
||||||
{
|
{
|
||||||
mModule->CreateValueFromExpression(rightExpression);
|
mModule->CreateValueFromExpression(rightExpression);
|
||||||
|
mResult = mModule->GetDefaultTypedValue(boolType, false, BfDefaultValueKind_Undef);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue