Fix bug in SmallBitmap

This commit is contained in:
Loïc Lecrenier 2023-03-19 14:27:58 +01:00
parent 8b4e07e1a3
commit 1e6e624078

View File

@ -22,7 +22,7 @@ impl<T> SmallBitmap<T> {
} else { } else {
Self { Self {
internal: SmallBitmapInternal::Small( internal: SmallBitmapInternal::Small(
vec![0; 1 + universe_length as usize / 64].into_boxed_slice(), vec![0; 1 + (universe_length - 1) as usize / 64].into_boxed_slice(),
), ),
_phantom: PhantomData, _phantom: PhantomData,
} }