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

Typed primitive subtraction result fix

This commit is contained in:
Brian Fiete 2022-06-23 12:06:15 -07:00
parent af7a670198
commit c6399519c8

View file

@ -23712,7 +23712,7 @@ void BfExprEvaluator::PerformBinaryOperation(BfAstNode* leftExpression, BfAstNod
auto underlyingType = resultType->GetUnderlyingType();
if (binaryOp == BfBinaryOp_Subtract)
if ((binaryOp == BfBinaryOp_Subtract) && (otherTypedValue->mType == resultType))
{
intptr maxDist = 0;
auto resultTypeInstance = resultType->ToTypeInstance();