diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-28 13:10:45 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-28 13:10:45 +0200 |
commit | 13a380bca6d64310eb1383434519b153f1b48e57 (patch) | |
tree | 05e5633f9b7665d7c8883a1ca4a0c9b8a9ed0c15 /compiler/ccgcalls.nim | |
parent | aded62520b07fe4d03c36de8999b050b5678c4b8 (diff) | |
download | Nim-13a380bca6d64310eb1383434519b153f1b48e57.tar.gz |
make tests green
Diffstat (limited to 'compiler/ccgcalls.nim')
-rw-r--r-- | compiler/ccgcalls.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim index 2323d1f26..2ddc88509 100644 --- a/compiler/ccgcalls.nim +++ b/compiler/ccgcalls.nim @@ -143,7 +143,7 @@ proc openArrayLoc(p: BProc, n: PNode): Rope = proc genArgStringToCString(p: BProc, n: PNode): Rope {.inline.} = var a: TLoc initLocExpr(p, n.sons[0], a) - result = "($1 ? $1->data : \"\")" % [a.rdLoc] + result = "($1 ? $1->data : (NCSTRING)\"\")" % [a.rdLoc] proc genArg(p: BProc, n: PNode, param: PSym; call: PNode): Rope = var a: TLoc |