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:
parent
af7a670198
commit
c6399519c8
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue