Skip to content

Commit

Permalink
fix right bounds bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 29, 2024
1 parent c4d0fdf commit ad9b885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sa-index/src/sa_searcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl Searcher {
fn binary_search_bound(&self, bound: BoundSearch, search_string: &[u8], start_bounds: (usize, usize), start_lcp: usize) -> (bool, usize) {
let (mut left, mut right) = start_bounds;
let mut lcp_left: usize = start_lcp;
let mut lcp_right: usize = start_lcp;
let mut lcp_right: usize = 0;
let mut found = false;

// repeat until search window is minimum size OR we matched the whole search string last
Expand Down

0 comments on commit ad9b885

Please sign in to comment.