mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Allow negation (-) on 'var' types
This commit is contained in:
parent
77826c90d2
commit
fb86a8d5e3
1 changed files with 5 additions and 0 deletions
|
@ -22566,7 +22566,12 @@ void BfExprEvaluator::PerformUnaryOperation_OnResult(BfExpression* unaryOpExpr,
|
|||
else if (value.mType->IsFloat())
|
||||
mResult = BfTypedValue(mModule->mBfIRBuilder->CreateNeg(value.mValue), origType);
|
||||
else
|
||||
{
|
||||
ResolveGenericType();
|
||||
if (mResult.mType->IsVar())
|
||||
break;
|
||||
numericFail = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case BfUnaryOp_InvertBits:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue