diff options
-rw-r--r-- | compiler/vm.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index a9bc95a19..d518a2159 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -633,6 +633,8 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = regs[ra].intVal = cast[int](regs[rb].node.intVal) of rkNodeAddr: regs[ra].intVal = cast[int](regs[rb].nodeAddr) + of rkInt: + regs[ra].intVal = regs[rb].intVal else: stackTrace(c, tos, pc, "opcCastPtrToInt: got " & $regs[rb].kind) of 2: # tyRef |