new vm: bugfix
This commit is contained in:
parent
346443d1b5
commit
137e971547
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): PNode =
|
||||||
regs[ra].intVal = regs[rb].skipMeta.len - imm
|
regs[ra].intVal = regs[rb].skipMeta.len - imm
|
||||||
of opcLenStr:
|
of opcLenStr:
|
||||||
decodeBImm(nkIntLit)
|
decodeBImm(nkIntLit)
|
||||||
assert regs[rb].kind == nkStrLit
|
assert regs[rb].kind in {nkStrLit..nkTripleStrLit}
|
||||||
regs[ra].intVal = regs[rb].strVal.len - imm
|
regs[ra].intVal = regs[rb].strVal.len - imm
|
||||||
of opcIncl:
|
of opcIncl:
|
||||||
decodeB(nkCurly)
|
decodeB(nkCurly)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue