summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-12-14 18:40:47 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-12-14 18:40:58 +0100
commitbd8e89774e075aab66bb06df36486cf965afc464 (patch)
tree9a4d4648409990c4d2710a40613aa3b578ae12f2
parentb012d2f79eb71f834d8b6ebab4424016aab8366a (diff)
downloadNim-bd8e89774e075aab66bb06df36486cf965afc464.tar.gz
fixes a critical bug concerning a[^1] rewritings
-rw-r--r--compiler/semmagic.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim
index deef38ae3..f98ff0266 100644
--- a/compiler/semmagic.nim
+++ b/compiler/semmagic.nim
@@ -207,7 +207,7 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode,
         result = n.sons[1]
       else:
         result = newNodeIT(nkCall, n.info, getSysType(tyInt))
-        result.add newSymNode(createMagic("-", mSubI), n.info)
+        result.add newSymNode(getSysMagic("-", mSubI), n.info)
         result.add lenExprB
         result.add n.sons[1]
   of mPlugin: