diff options
-rw-r--r-- | compiler/vm.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index 2e65a47f4..2d4d06c41 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -580,11 +580,11 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = of opcCastIntToFloat32: let rb = instr.regB ensureKind(rkFloat) - regs[ra].floatVal = cast[float32](int32(regs[rb].intVal)) + regs[ra].floatVal = cast[float32](regs[rb].intVal) of opcCastIntToFloat64: let rb = instr.regB ensureKind(rkFloat) - regs[ra].floatVal = cast[float64](int64(regs[rb].intVal)) + regs[ra].floatVal = cast[float64](regs[rb].intVal) of opcCastPtrToInt: # RENAME opcCastPtrOrRefToInt decodeBImm(rkInt) |