changeset 8018:2621f6f10c2e HEAD

SORT: Fixed assert-crash.
author Timo Sirainen <tss@iki.fi>
date Sun, 20 Jul 2008 17:42:57 +0300
parents 4a80a7ec7c6a
children bd0a8f1485b5
files src/lib-storage/index/index-sort-string.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-sort-string.c	Sun Jul 20 16:49:11 2008 +0300
+++ b/src/lib-storage/index/index-sort-string.c	Sun Jul 20 17:42:57 2008 +0300
@@ -534,7 +534,7 @@
 			i_assert(right_idx == rightmost_idx);
 			right_sort_id = (uint32_t)-1;
 		}
-		i_assert(left_sort_id < right_sort_id);
+		i_assert(left_sort_id <= right_sort_id);
 
 		if (diff == right_sort_id - left_sort_id) {
 			/* we did nothing, but there's still not enough space.