From: Martin Mares Date: Mon, 10 Sep 2007 19:00:35 +0000 (+0200) Subject: Oops, some typos have crept in. X-Git-Tag: holmes-import~506^2~13^2~21 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c37657c6593b24d0f209e153ba22243454a2603c;p=libucw.git Oops, some typos have crept in. --- diff --git a/lib/sorter/array.c b/lib/sorter/array.c index 5bc60276..d1a1a07f 100644 --- a/lib/sorter/array.c +++ b/lib/sorter/array.c @@ -48,7 +48,7 @@ asort_radix(struct asort_context *ctx, void *array, void *buffer, uns num_elts, for (uns i=0; ielt_size < sorter_radix_threshold || shift < ASORT_MIN_SHIFT) + if (n * ctx->elt_size < sorter_radix_threshold || shift < ASORT_MIN_SHIFT) { ctx->quicksort(buffer, n); if (!swapped_output) @@ -216,7 +216,7 @@ rs_finish(struct worker_thread *thr UNUSED, struct work *ww) if (thr) DBG("Thread %d: Finishing %d items, shift=%d", thr->id, w->num_elts, w->shift); - if (w->shift < ASORT_MIN_SHIFT || w->num_elts * ctx->elt_size < sorter_radix_threshold) + if (w->shift < ASORT_MIN_SHIFT || w->num_elts * w->ctx->elt_size < sorter_radix_threshold) { w->ctx->quicksort(w->in, w->num_elts); if (w->swap_output)