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)
|
decodeB(rkInt)
|
||||||
let a = regs[rb].node
|
let a = regs[rb].node
|
||||||
case a.kind
|
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")
|
else: stackTrace(c, tos, pc, errFieldXNotFound, "intVal")
|
||||||
of opcNFloatVal:
|
of opcNFloatVal:
|
||||||
decodeB(rkFloat)
|
decodeB(rkFloat)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue