Make intVal work for uint literals in the VM
This commit is contained in:
parent
63f1e03278
commit
51de44be79
1 changed files with 1 additions and 1 deletions
|
|
@ -1121,7 +1121,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
|||
decodeB(rkInt)
|
||||
let a = regs[rb].node
|
||||
case a.kind
|
||||
of nkCharLit..nkInt64Lit: regs[ra].intVal = a.intVal
|
||||
of nkCharLit..nkUInt64Lit: regs[ra].intVal = a.intVal
|
||||
else: stackTrace(c, tos, pc, errFieldXNotFound, "intVal")
|
||||
of opcNFloatVal:
|
||||
decodeB(rkFloat)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue