diff options
Diffstat (limited to 'compiler/ccgexprs.nim')
-rwxr-xr-x | compiler/ccgexprs.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 3f3a60b7a..2cb99d3a9 100755 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -772,8 +772,8 @@ proc genEcho(p: BProc, n: PNode) = for i in countup(1, n.len-1): initLocExpr(p, n.sons[i], a) appf(args, ", ($1)->data", [rdLoc(a)]) - appcg(p, cpsStmts, "printf(\"" & repeatStr(n.len-1, "%s") & - "\\n\"$1);$n", [args]) + appcg(p, cpsStmts, "printf($1$2);$n", [ + makeCString(repeatStr(n.len-1, "%s") & tnl), args]) proc genCall(p: BProc, t: PNode, d: var TLoc) = var op, a: TLoc |