Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/hll/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ impl HllSketch {
/// If lg_config_k is not in range [4, 21]
pub fn new(lg_config_k: u8, hll_type: HllType) -> Self {
assert!(
Comment thread
notfilippo marked this conversation as resolved.
lg_config_k > 4 && lg_config_k < 21,
"lg_config_k must be in [4, 21]"
(4..=21).contains(&lg_config_k),
"lg_config_k must be in [4, 21], got {}",
lg_config_k
);

let list = List::default();
Expand Down
Loading