From c37657c6593b24d0f209e153ba22243454a2603c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 10 Sep 2007 21:00:35 +0200 Subject: [PATCH] Oops, some typos have crept in. --- lib/sorter/array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2