summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index ebfd9570..7ff74592 100644
--- a/regex.c
+++ b/regex.c
@@ -2418,7 +2418,7 @@ static regm_result_t regex_machine_feed(regex_machine_t *regm, wchar_t ch)
regm->n.nclos = nfa_move_closure(regm->n.stack,
regm->n.set, regm->n.nclos,
- regm->n.nstates, ch, regm->n.visited++,
+ regm->n.nstates, ch, ++regm->n.visited,
&accept);
if (regm->n.nfa.start)