From ca12bf76f595027076a437f8bf98a1928f1504d4 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 16 Oct 2013 17:26:07 +0200 Subject: opcLdGlobal bugfix --- compiler/vm.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/vm.nim b/compiler/vm.nim index b2c848287..943324de1 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -652,7 +652,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): PNode = else: asgnComplex(regs[ra], c.constants.sons[rb]) of opcLdGlobal: - let rb = instr.regBx - wordExcess + let rb = instr.regBx - wordExcess - 1 if regs[ra].isNil: regs[ra] = copyTree(c.globals.sons[rb]) else: -- cgit 1.4.1-2-gfad0