mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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;
|
BfType* wantType = leftValue.mType;
|
||||||
if ((binaryOp == BfBinaryOp_LeftShift) || (binaryOp == BfBinaryOp_RightShift))
|
if ((binaryOp == BfBinaryOp_LeftShift) || (binaryOp == BfBinaryOp_RightShift))
|
||||||
wantType = NULL; // Don't presume
|
wantType = NULL; // Don't presume
|
||||||
|
wantType = mModule->FixIntUnknown(wantType);
|
||||||
rightValue = mModule->CreateValueFromExpression(rightExpression, wantType, BfEvalExprFlags_NoCast);
|
rightValue = mModule->CreateValueFromExpression(rightExpression, wantType, BfEvalExprFlags_NoCast);
|
||||||
if ((!leftValue) || (!rightValue))
|
if ((!leftValue) || (!rightValue))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue