fixes a critical bug concerning a[^1] rewritings

This commit is contained in:
Andreas Rumpf
2015-12-14 18:40:47 +01:00
parent b012d2f79e
commit bd8e89774e

View File

@@ -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: