Replaced deprecated repeatStr() with repeat().
This commit is contained in:
parent
58186f6c1d
commit
b902ea887b
7 changed files with 14 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue