summaryrefslogtreecommitdiff
path: root/lib/std/strbuf.myr
diff options
context:
space:
mode:
authorandrewc <andrewchamberss@gmail.com>2016-02-05 17:32:18 +1300
committerAndrew Chambers <andrewchamberss@gmail.com>2016-02-05 18:55:59 +1300
commite506b713ad0766bf7eb182325cba64fd6931c1cc (patch)
tree227c69546e86f113c301605f511833691477eb89 /lib/std/strbuf.myr
parent4fd76bb3f5d16488d7b50a5ef1b7674537889e06 (diff)
downloadmc-e506b713ad0766bf7eb182325cba64fd6931c1cc.tar.gz
change slgrow to take a pointer
Diffstat (limited to 'lib/std/strbuf.myr')
-rw-r--r--lib/std/strbuf.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/strbuf.myr b/lib/std/strbuf.myr
index 85078de..aec7944 100644
--- a/lib/std/strbuf.myr
+++ b/lib/std/strbuf.myr
@@ -101,7 +101,7 @@ const ensure = {sb, len
-> false
;;
while sb.buf.len < sb.len + len
- sb.buf = slgrow(sb.buf, 2*sb.buf.len)
+ slgrow(&sb.buf, 2*sb.buf.len)
;;
-> true
}