# HG changeset patch # User Timo Sirainen # Date 1216564977 -10800 # Node ID 2621f6f10c2ec94f8461d3deec5e4487f0c63ad5 # Parent 4a80a7ec7c6abebf3f4335614ac899d5eeedfdf3 SORT: Fixed assert-crash. diff -r 4a80a7ec7c6a -r 2621f6f10c2e src/lib-storage/index/index-sort-string.c --- 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.