]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sorter/s-internal.h
Redefined RadixThreshold to bound the array size instead of the number
[libucw.git] / lib / sorter / s-internal.h
index 23f14e52b2cc8ea40e574ace9b41ad99cf8c373a..ef2da2402958cfa62bfdac3a69d575390ce7e0a8 100644 (file)
@@ -172,11 +172,9 @@ static int P(internal)(struct sort_context *ctx, struct sort_bucket *bin, struct
        stk_fsize((byte*)ctx->big_buf + bufsize - end));
   timestamp_t timer;
   init_timer(&timer);
-  item_array = P(array_sort)(item_array, count,
+  item_array = P(array_sort)(item_array, count
 #ifdef SORT_INTERNAL_RADIX
-    workspace, bin->hash_bits
-#else
-    NULL, 0
+    , workspace, bin->hash_bits
 #endif
     );
   ctx->total_int_time += get_timer(&timer);