diff options
author | Juan M Gómez <info@jmgomez.me> | 2023-06-07 23:08:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 00:08:36 +0200 |
commit | d29237b3c7c63586b06d788959e46189ff413245 (patch) | |
tree | 0418c08d2dcb7b4bd987d34746553eca57106b85 | |
parent | 7fad6e5c701ef81c443871ec61fdca0c19c9f588 (diff) | |
download | Nim-d29237b3c7c63586b06d788959e46189ff413245.tar.gz |
adds `rkInt` to the `opcCastPtrToInt` op (#22039)
adds rkInt to the opcCastPtrToInt op
-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 |