From 14046d975dd0c5a5195dea7d6bdcb3daa8e69eca Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 21 Apr 2018 17:01:27 +0200 Subject: make tests green again --- compiler/vm.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/vm.nim') 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) -- cgit 1.4.1-2-gfad0