From 0ad9499b935db85347323f14b2144c1c6a45d924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 24 Mar 2021 15:37:03 +0100 Subject: [PATCH] Fix an indexing bug in the words level positions --- milli/src/update/words_level_positions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/update/words_level_positions.rs b/milli/src/update/words_level_positions.rs index eb8d3bb3c..70bc89860 100644 --- a/milli/src/update/words_level_positions.rs +++ b/milli/src/update/words_level_positions.rs @@ -121,7 +121,7 @@ fn compute_positions_levels( let level_0_range = { let left = (word, TreeLevel::min_value(), u32::min_value(), u32::min_value()); - let right = (word, TreeLevel::max_value(), u32::max_value(), u32::max_value()); + let right = (word, TreeLevel::min_value(), u32::max_value(), u32::max_value()); left..=right };