Skip to content

Commit

Permalink
Merge #62
Browse files Browse the repository at this point in the history
62: Remove incorrect debug_assert r=Amanieu a=Amanieu

Fixes #60 

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
  • Loading branch information
bors[bot] and Amanieu committed Apr 12, 2019
2 parents 9068eb7 + 7225250 commit 9db8201
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,8 @@ fn special_is_empty(ctrl: u8) -> bool {
#[inline]
#[allow(clippy::cast_possible_truncation)]
fn h1(hash: u64) -> usize {
#[cfg(target_pointer_width = "32")]
{
debug_assert!(hash <= u64::from(u32::max_value()));
}
hash as usize // truncation
// On 32-bit platforms we simply ignore the higher hash bits.
hash as usize
}

/// Secondary hash function, saved in the low 7 bits of the control byte.
Expand Down

0 comments on commit 9db8201

Please sign in to comment.