diff options
author | Araq <rumpf_a@web.de> | 2013-10-16 17:26:07 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-10-16 17:26:07 +0200 |
commit | ca12bf76f595027076a437f8bf98a1928f1504d4 (patch) | |
tree | 857d65b8d925ada8eed3e119ad16222276c662dd /compiler/vm.nim | |
parent | 3d18053370580916d190c98540a2e3d0ff66f9c3 (diff) | |
download | Nim-ca12bf76f595027076a437f8bf98a1928f1504d4.tar.gz |
opcLdGlobal bugfix
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r-- | compiler/vm.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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: |