adds rkInt to the opcCastPtrToInt op (#22039)

adds rkInt to the opcCastPtrToInt op
This commit is contained in:
Juan M Gómez
2023-06-07 23:08:36 +01:00
committed by GitHub
parent 7fad6e5c70
commit d29237b3c7

View File

@@ -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