diff --git a/IDEHelper/Compiler/CeMachine.cpp b/IDEHelper/Compiler/CeMachine.cpp index 65c7ca2f..cc56e56c 100644 --- a/IDEHelper/Compiler/CeMachine.cpp +++ b/IDEHelper/Compiler/CeMachine.cpp @@ -1007,6 +1007,13 @@ void CeBuilder::EmitBinaryOp(CeOp iOp, CeOp fOp, const CeOperand& lhs, const CeO CeOperand CeBuilder::EmitNumericCast(const CeOperand& ceValue, BeType* toType, bool valSigned, bool toSigned) { + if (ceValue.mKind == CeOperandKind_Immediate) + { + CeOperand newVal = ceValue; + newVal.mType = toType; + return newVal; + } + CeOperand result; auto fromType = ceValue.mType;