diff --git a/milli/src/search/new/small_bitmap.rs b/milli/src/search/new/small_bitmap.rs index faf9c077c..1fdd31346 100644 --- a/milli/src/search/new/small_bitmap.rs +++ b/milli/src/search/new/small_bitmap.rs @@ -22,7 +22,7 @@ impl SmallBitmap { } else { Self { 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, }