diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-21 17:01:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-21 17:01:33 +0200 |
commit | 14046d975dd0c5a5195dea7d6bdcb3daa8e69eca (patch) | |
tree | f7375ae573bfeda663ca81664211706d2f923065 /compiler/vm.nim | |
parent | 4f10b5edb6a6e51da5a3f8b0156a456d6eba8727 (diff) | |
download | Nim-14046d975dd0c5a5195dea7d6bdcb3daa8e69eca.tar.gz |
make tests green again
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 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) |