Skip to content

Commit

Permalink
division by 0 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 28, 2024
1 parent 3db59a0 commit a1c3cdd
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 @@ -152,7 +152,7 @@ impl Searcher {
// Create the Searcher object
let mut searcher = Self { sa, kmer_cache, proteins, suffix_index_to_protein };

let print_step_size = min(searcher.kmer_cache.base.pow(k as u32) / 100, searcher.kmer_cache.base);
let print_step_size = max(searcher.kmer_cache.base.pow(k as u32) / 100, searcher.kmer_cache.base);

Check failure on line 155 in sa-index/src/sa_searcher.rs

View workflow job for this annotation

GitHub Actions / Check + test

cannot find function `max` in this scope

eprintln!("Starting cache fill");
let start_cache_fill_time = get_time_ms().unwrap();
Expand Down

0 comments on commit a1c3cdd

Please sign in to comment.