From d29237b3c7c63586b06d788959e46189ff413245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20M=20G=C3=B3mez?= Date: Wed, 7 Jun 2023 23:08:36 +0100 Subject: [PATCH] adds `rkInt` to the `opcCastPtrToInt` op (#22039) adds rkInt to the opcCastPtrToInt op --- compiler/vm.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/vm.nim b/compiler/vm.nim index a9bc95a195..d518a2159c 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