diff options
author | Hans Raaf <hara@oderwat.de> | 2015-03-04 03:44:09 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2015-03-04 03:44:09 +0100 |
commit | b902ea887b7717f658661ae5887602e6e2b61a3a (patch) | |
tree | 2c17918a4209582b4e67b6889361b1459151708d /compiler | |
parent | 58186f6c1d5e22efcf8f384af2feefbedab7c365 (diff) | |
download | Nim-b902ea887b7717f658661ae5887602e6e2b61a3a.tar.gz |
Replaced deprecated repeatStr() with repeat().
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
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) |