X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fsorter%2Fs-internal.h;h=35ba1f50dde6ab00ddb1c98495f5900c5ebf542f;hb=c8ca82c11892f8ed331c764a1065abe23bb2f662;hp=3a7107fe41767679e93d820f0656e568fcc2bfd8;hpb=a35c70e7c84561bd0d004b193cfe6609764ae8b2;p=libucw.git diff --git a/lib/sorter/s-internal.h b/lib/sorter/s-internal.h index 3a7107fe..35ba1f50 100644 --- a/lib/sorter/s-internal.h +++ b/lib/sorter/s-internal.h @@ -177,6 +177,8 @@ static int P(internal)(struct sort_context *ctx, struct sort_bucket *bin, struct , workspace, bin->hash_bits #endif ); + if ((void *)item_array != ctx->big_buf) + workspace = ctx->big_buf; last_item = item_array + count; ctx->total_int_time += get_timer(&timer);