summaryrefslogtreecommitdiff
path: root/lib/regex
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/regex
parent4fd76bb3f5d16488d7b50a5ef1b7674537889e06 (diff)
downloadmc-e506b713ad0766bf7eb182325cba64fd6931c1cc.tar.gz
change slgrow to take a pointer
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/compile.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/regex/compile.myr b/lib/regex/compile.myr
index 661e2d8..4889154 100644
--- a/lib/regex/compile.myr
+++ b/lib/regex/compile.myr
@@ -352,7 +352,7 @@ const genchar = {re, c
/* appends an instructon to an re program */
const append = {re, insn
if re.proglen == re.prog.len
- re.prog = std.slgrow(re.prog, std.max(1, 2*re.proglen))
+ std.slgrow(&re.prog, std.max(1, 2*re.proglen))
;;
re.prog[re.proglen] = insn
re.proglen++