Commit 98134a8c authored by Stefan Oberhumer's avatar Stefan Oberhumer Committed by Alexandre Julliard

ntdll: Fix 64 bit issue within NTDLL_mergesort().

parent ff644cb1
...@@ -255,11 +255,11 @@ double CDECL NTDLL_tan( double d ) ...@@ -255,11 +255,11 @@ double CDECL NTDLL_tan( double d )
/* Merge Sort. Algorithm taken from http://www.linux-related.de/index.html?/coding/sort/sort_merge.htm */ /* Merge Sort. Algorithm taken from http://www.linux-related.de/index.html?/coding/sort/sort_merge.htm */
static void static void
NTDLL_mergesort( void *arr, void *barr, int elemsize, int(__cdecl *compar)(const void *, const void *), NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(const void *, const void *),
int left, int right ) size_t left, size_t right )
{ {
if(right>left) { if(right>left) {
int i, j, k, m; size_t i, j, k, m;
m=(right+left)/2; m=(right+left)/2;
NTDLL_mergesort( arr, barr, elemsize, compar, left, m); NTDLL_mergesort( arr, barr, elemsize, compar, left, m);
NTDLL_mergesort( arr, barr, elemsize, compar, m+1, right); NTDLL_mergesort( arr, barr, elemsize, compar, m+1, right);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment