summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorBillingsly Wetherfordshire <phowl.mouth@gmail.com>2013-04-25 17:08:59 -0500
committerBillingsly Wetherfordshire <phowl.mouth@gmail.com>2013-04-25 17:08:59 -0500
commit8e12d1fb573e1841a84b67289853b054aeafe5ac (patch)
treef23ee05113b53b86145e5cf82ab381ed58542a92 /compiler
parent171155a12dcb08d9557b7099efae54bebd1d19f1 (diff)
downloadNim-8e12d1fb573e1841a84b67289853b054aeafe5ac.tar.gz
Update evals.nim
Diffstat (limited to 'compiler')
-rw-r--r--compiler/evals.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/evals.nim b/compiler/evals.nim
index 2a9fae5f0..3f5b7887a 100644
--- a/compiler/evals.nim
+++ b/compiler/evals.nim
@@ -1099,7 +1099,7 @@ proc evalMagicOrCall(c: PEvalContext, n: PNode): PNode =
     result = evalAux(c, n.sons[2], {efLValue})
     if isSpecial(result): return 
     addSon(a, result)
-    result = emptyNode
+    result = a
   of mNAddMultiple: 
     result = evalAux(c, n.sons[1], {efLValue})
     if isSpecial(result): return 
@@ -1107,7 +1107,7 @@ proc evalMagicOrCall(c: PEvalContext, n: PNode): PNode =
     result = evalAux(c, n.sons[2], {efLValue})
     if isSpecial(result): return 
     for i in countup(0, sonsLen(result) - 1): addSon(a, result.sons[i])
-    result = emptyNode
+    result = a
   of mNDel: 
     result = evalAux(c, n.sons[1], {efLValue})
     if isSpecial(result): return