From 1e6e62407882b26c6158e465bcf9b3d542d5e3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Sun, 19 Mar 2023 14:27:58 +0100 Subject: [PATCH] Fix bug in SmallBitmap --- milli/src/search/new/small_bitmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }