Skip to content

Commit

Permalink
Merge pull request #69 from SGSSGene/fix/trivial_improvement_for_pseudo
Browse files Browse the repository at this point in the history
fix: improve pseudo search
  • Loading branch information
SGSSGene authored Nov 15, 2024
2 parents 4ebdc12 + e0069dd commit cd34f30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fmindex-collection/search/SearchPseudo.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ struct Search {
// cursors extended by one character
auto cursors = std::array<cursor_t, Sigma>{};
if (e+1 <= u[pos]) {
for (size_t i{1}; i < Sigma; ++i) {
cursors[i] = extend(cur, i, pos);
}
cursors = extend(cur, pos);
} else {
cursors[rank] = extend(cur, rank, pos);
}
Expand Down

0 comments on commit cd34f30

Please sign in to comment.