diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-03-09 17:06:29 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-03-09 17:06:29 +0200 |
commit | eebe0035b5d16d82a3806ff6c3d29935e771226b (patch) | |
tree | 3670b901a7ec5d1b8a040a31c3a4b2be676309c3 /compiler/vm.nim | |
parent | 1793a0b5cefda62d49d584bd12cc1fc6a40f1438 (diff) | |
download | Nim-eebe0035b5d16d82a3806ff6c3d29935e771226b.tar.gz |
teach opcLdObj about nkExprColonExpr
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r-- | compiler/vm.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index f9b143bce..2a80106a5 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -425,7 +425,9 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = decodeBC(rkNode) let src = regs[rb].node if src.kind notin {nkEmpty..nkNilLit}: - regs[ra].node = src.sons[rc] + let n = src.sons[rc] + regs[ra].node = if n.kind == nkExprColonExpr: n[1] + else: n else: stackTrace(c, tos, pc, errIndexOutOfBounds) of opcWrObj: |