summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorHans Raaf <hara@oderwat.de>2015-03-04 03:44:09 +0100
committerHans Raaf <hara@oderwat.de>2015-03-04 03:44:09 +0100
commitb902ea887b7717f658661ae5887602e6e2b61a3a (patch)
tree2c17918a4209582b4e67b6889361b1459151708d /compiler
parent58186f6c1d5e22efcf8f384af2feefbedab7c365 (diff)
downloadNim-b902ea887b7717f658661ae5887602e6e2b61a3a.tar.gz
Replaced deprecated repeatStr() with repeat().
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index 5f5aa6308..564d1fd36 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -949,7 +949,7 @@ proc genEcho(p: BProc, n: PNode) =
     initLocExpr(p, n.sons[i], a)
     appf(args, ", $1? ($1)->data:\"nil\"", [rdLoc(a)])
   linefmt(p, cpsStmts, "printf($1$2);$n",
-          makeCString(repeatStr(n.len, "%s") & tnl), args)
+          makeCString(repeat("%s", n.len) & tnl), args)
 
 proc gcUsage(n: PNode) =
   if gSelectedGC == gcNone: message(n.info, warnGcMem, n.renderTree)