Skip to content

Commit

Permalink
Update src/nfa/delta.cc
Browse files Browse the repository at this point in the history
Co-authored-by: David Chocholatý <[email protected]>
  • Loading branch information
kilohsakul and Adda0 authored Sep 28, 2023
1 parent 03e911d commit 8959594
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nfa/delta.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ StatePost::const_iterator StatePost::first_epsilon_it(Symbol first_epsilon) cons
while (it != begin()) {
--it;
if (it->symbol < first_epsilon) { //is it a normal symbol already?
++it; // go step back, to the smallest epsilon or end(), and return it
return it;
return it + 1; // Return one step back: the smallest epsilon or end().
}
}

Expand Down

0 comments on commit 8959594

Please sign in to comment.