summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-12 18:57:07 -0700
committerOri Bernstein <ori@eigenstate.org>2018-03-12 18:57:07 -0700
commit1b564b2e25048bc2bb7e4f0a6cd4dd24938eeb95 (patch)
treea4f40e7c2a5dcaae0fa0e3ab3ba38a9c6d5850b4 /lib/regex
parent755433e998180ba049bc22975b8ecffa23bf0357 (diff)
downloadmc-1b564b2e25048bc2bb7e4f0a6cd4dd24938eeb95.tar.gz
Reinit nexttid on every run.
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/interp.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/regex/interp.myr b/lib/regex/interp.myr
index 7ca1be5..15e2230 100644
--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -130,7 +130,6 @@ const cleanup = {re, result
re.expired = Zthr
re.free = Zthr
re.nfree = 0
- re.nexttid = 0
re.nthr = 0
}
@@ -184,6 +183,7 @@ const run = {re, str, idx, wholestr
re.str = str
re.strp = 0
+ re.nexttid = 0
bestmatch = Zthr
states = std.mkbs()