summary refs log tree commit diff stats
path: root/compiler/vm.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-21 17:01:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-21 17:01:33 +0200
commit14046d975dd0c5a5195dea7d6bdcb3daa8e69eca (patch)
treef7375ae573bfeda663ca81664211706d2f923065 /compiler/vm.nim
parent4f10b5edb6a6e51da5a3f8b0156a456d6eba8727 (diff)
downloadNim-14046d975dd0c5a5195dea7d6bdcb3daa8e69eca.tar.gz
make tests green again
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r--compiler/vm.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index 70f79c433..32db8f378 100644
--- a/compiler/vm.nim
+++ b/compiler/vm.nim
@@ -1693,7 +1693,7 @@ proc evalConstExprAux(module: PSym; cache: IdentCache; prc: PSym, n: PNode,
   newSeq(tos.slots, c.prc.maxSlots)
   #for i in 0 ..< c.prc.maxSlots: tos.slots[i] = newNode(nkEmpty)
   result = rawExecute(c, start, tos).regToNode
-  if result.info.line < 0: result.info = n.info
+  if result.info.col < 0: result.info = n.info
 
 proc evalConstExpr*(module: PSym; cache: IdentCache, e: PNode): PNode =
   result = evalConstExprAux(module, cache, nil, e, emConst)