Skip to content

Commit

Permalink
adds rkInt to the opcCastPtrToInt op (#22039)
Browse files Browse the repository at this point in the history
adds rkInt to the opcCastPtrToInt op
  • Loading branch information
jmgomez committed Jun 7, 2023
1 parent 7fad6e5 commit d29237b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/vm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d29237b

Please sign in to comment.