mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
LoadValue eq issue with union equals operator
This commit is contained in:
parent
62f2053d0f
commit
206023f4a6
1 changed files with 3 additions and 0 deletions
|
@ -25040,6 +25040,9 @@ void BfExprEvaluator::PerformBinaryOperation(BfAstNode* leftExpression, BfAstNod
|
||||||
|
|
||||||
if ((binaryOp == BfBinaryOp_Equality) || (binaryOp == BfBinaryOp_StrictEquality) || (binaryOp == BfBinaryOp_InEquality) || (binaryOp == BfBinaryOp_StrictInEquality))
|
if ((binaryOp == BfBinaryOp_Equality) || (binaryOp == BfBinaryOp_StrictEquality) || (binaryOp == BfBinaryOp_InEquality) || (binaryOp == BfBinaryOp_StrictInEquality))
|
||||||
{
|
{
|
||||||
|
leftValue = mModule->LoadOrAggregateValue(leftValue);
|
||||||
|
rightValue = mModule->LoadOrAggregateValue(rightValue);
|
||||||
|
|
||||||
if (resultType->IsInterface())
|
if (resultType->IsInterface())
|
||||||
{
|
{
|
||||||
// Compare as objects instead
|
// Compare as objects instead
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue