summary refs log tree commit diff stats
path: root/compiler/ccgcalls.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-02-26 17:27:36 +0100
committerAraq <rumpf_a@web.de>2017-02-26 17:41:00 +0100
commit4c5ecb46b0b1bd14af80e7bf234e92e1bf85b28a (patch)
tree3a87898d96dab0c5b2d11bbbf9bed963e77a2c80 /compiler/ccgcalls.nim
parentfb37d13f46af037aa5f40f0715e4513f515f5de2 (diff)
downloadNim-4c5ecb46b0b1bd14af80e7bf234e92e1bf85b28a.tar.gz
fixes a minor codegen issue where name mangling could produce an identifier used by the codegen; refs #5437
Diffstat (limited to 'compiler/ccgcalls.nim')
-rw-r--r--compiler/ccgcalls.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim
index 8ea81ac65..9dd5e7bb2 100644
--- a/compiler/ccgcalls.nim
+++ b/compiler/ccgcalls.nim
@@ -109,7 +109,7 @@ proc openArrayLoc(p: BProc, n: PNode): Rope =
     initLocExpr(p, n, a)
     case skipTypes(a.t, abstractVar).kind
     of tyOpenArray, tyVarargs:
-      result = "$1, $1Len0" % [rdLoc(a)]
+      result = "$1, $1Len_0" % [rdLoc(a)]
     of tyString, tySequence:
       if skipTypes(n.typ, abstractInst).kind == tyVar and
             not compileToCpp(p.module):