mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed int-unknown issue in binary operation
This commit is contained in:
parent
5f339d811d
commit
cee6a78fc0
1 changed files with 1 additions and 0 deletions
|
@ -19103,6 +19103,7 @@ void BfExprEvaluator::PerformBinaryOperation(BfExpression* leftExpression, BfExp
|
|||
BfType* wantType = leftValue.mType;
|
||||
if ((binaryOp == BfBinaryOp_LeftShift) || (binaryOp == BfBinaryOp_RightShift))
|
||||
wantType = NULL; // Don't presume
|
||||
wantType = mModule->FixIntUnknown(wantType);
|
||||
rightValue = mModule->CreateValueFromExpression(rightExpression, wantType, BfEvalExprFlags_NoCast);
|
||||
if ((!leftValue) || (!rightValue))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue