diff --git a/src/hash_table/bucket_array.rs b/src/hash_table/bucket_array.rs index a5404dd..e59818a 100644 --- a/src/hash_table/bucket_array.rs +++ b/src/hash_table/bucket_array.rs @@ -92,7 +92,8 @@ impl BucketArray { bucket_array_ptr_offset + bucket_size * array_len <= bucket_array_allocation_size, ); assert_eq!( - (bucket_array_ptr as usize + bucket_array_ptr_offset) % bucket_size.next_power_of_two(), + (bucket_array_ptr as usize + bucket_array_ptr_offset) + % bucket_size.next_power_of_two(), 0 );