mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
adds rkInt to the opcCastPtrToInt op (#22039)
adds rkInt to the opcCastPtrToInt op
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user