opcLdGlobal bugfix
This commit is contained in:
parent
3d18053370
commit
ca12bf76f5
1 changed files with 1 additions and 1 deletions
|
|
@ -652,7 +652,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): PNode =
|
||||||
else:
|
else:
|
||||||
asgnComplex(regs[ra], c.constants.sons[rb])
|
asgnComplex(regs[ra], c.constants.sons[rb])
|
||||||
of opcLdGlobal:
|
of opcLdGlobal:
|
||||||
let rb = instr.regBx - wordExcess
|
let rb = instr.regBx - wordExcess - 1
|
||||||
if regs[ra].isNil:
|
if regs[ra].isNil:
|
||||||
regs[ra] = copyTree(c.globals.sons[rb])
|
regs[ra] = copyTree(c.globals.sons[rb])
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue