Skip to content

Commit

Permalink
fix #13479 (#13503)
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 authored Feb 26, 2020
1 parent e4ed19c commit 5d2483f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/vm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d2483f

Please sign in to comment.