From: Martin Mares Date: Tue, 22 May 2007 21:04:29 +0000 (+0200) Subject: Fixed bug in calculation of radix split width. X-Git-Tag: holmes-import~506^2~13^2~131 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=39af3733e4cd262189d07be8e490ed5adfe265ec;p=libucw.git Fixed bug in calculation of radix split width. --- diff --git a/lib/sorter/govern.c b/lib/sorter/govern.c index 9f525e60..4c578ab3 100644 --- a/lib/sorter/govern.c +++ b/lib/sorter/govern.c @@ -173,7 +173,8 @@ sorter_twoway(struct sort_context *ctx, struct sort_bucket *b) static uns sorter_radix_bits(struct sort_context *ctx, struct sort_bucket *b) { - if (!b->hash_bits || !ctx->radix_split || + if (!b->hash_bits || b->hash_bits < sorter_min_radix_bits || + !ctx->radix_split || (b->flags & SBF_CUSTOM_PRESORT) || (sorter_debug & SORT_DEBUG_NO_RADIX)) return 0;