summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-06 02:41:53 +0100
committerAraq <rumpf_a@web.de>2014-02-06 02:41:53 +0100
commit3be07d842a13cde69aeb5e7908ed62907daef4f7 (patch)
treeadcd1cc8c57777704ef3625ac2534dbeb7a51dfd /compiler/vmgen.nim
parentcc0a32ae87469fe30c8c81461cc8c7170f92c8cf (diff)
downloadNim-3be07d842a13cde69aeb5e7908ed62907daef4f7.tar.gz
fixes regression: constant fac4 didn't work
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 313c43dc4..d0e8dacf3 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -1033,7 +1033,7 @@ proc genRdVar(c: PCtx; n: PNode; dest: var TDest) =
   if s.isGlobal:
     if sfCompileTime in s.flags or c.mode == emRepl:
       discard
-    else:
+    elif s.position == 0:
       cannotEval(n)
     if s.position == 0:
       if sfImportc in s.flags: c.importcSym(n.info, s)