Skip to content

Commit

Permalink
chore(*): finalize SCC 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wvwwvwwv committed Oct 11, 2024
1 parent c0c9472 commit 9aaf19b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hash_table/bucket_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ impl<K, V, L: LruList, const TYPE: char> BucketArray<K, V, L, TYPE> {
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
);

Expand Down

0 comments on commit 9aaf19b

Please sign in to comment.