We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3e4ea commit aea2f62Copy full SHA for aea2f62
src/raw/mod.rs
@@ -118,11 +118,8 @@ fn special_is_empty(ctrl: u8) -> bool {
118
#[inline]
119
#[allow(clippy::cast_possible_truncation)]
120
fn h1(hash: u64) -> usize {
121
- #[cfg(target_pointer_width = "32")]
122
- {
123
- debug_assert!(hash <= u64::from(u32::max_value()));
124
- }
125
- hash as usize // truncation
+ // On 32-bit platforms we simply ignore the higher hash bits.
+ hash as usize
126
}
127
128
/// Secondary hash function, saved in the low 7 bits of the control byte.
0 commit comments