summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-03 23:21:19 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-03 23:27:02 -0700
commit00e81c21f68c73403e42d08a6d5d955aa303cefd (patch)
tree4116752c87aae7e01ffda52d97181a0daa08cf07 /lib/regex
parentb37fc330005640f45c9691fe256993cb0b4e3e6c (diff)
downloadmc-00e81c21f68c73403e42d08a6d5d955aa303cefd.tar.gz
Function args should go into the block stab.
Now we get errors if a function body shadows its args.
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/interp.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/regex/interp.myr b/lib/regex/interp.myr
index abb907c..6c2c68b 100644
--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -387,7 +387,7 @@ const step = {re, thr, curip
mstart = std.sldup(thr.mstart)
mend = std.sldup(thr.mend)
hit(re, thr)
- fork(re, thr, rip, curip, mstart, mend)
+ fork(re, rip, curip, mstart, mend)
if re.debug
std.slpush(&re.traces, std.bsdup(re.traces[thr.tid]))
;;
@@ -407,7 +407,7 @@ const step = {re, thr, curip
-> true
}
-const fork = {re, thr, ip, curip, mstart, mend
+const fork = {re, ip, curip, mstart, mend
var thr
if ip == curip /* loop detection */