qsort: fix _wqsort
authorAlan Cox <alan@linux.intel.com>
Sun, 7 Dec 2014 14:28:20 +0000 (14:28 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 7 Dec 2014 14:28:20 +0000 (14:28 +0000)
From: Will Sowerbutts <will@sowerbutts.com>

[and changed from int to short just in case we ever do anything fun with some
 of the odder 32bit CPUs: Alan Cox]

Library/libs/qsort.c

index 68c3be0..3dbebaa 100644 (file)
@@ -26,7 +26,7 @@ static void _wqsort(void *basep, int lo, int hi,
    int   k;
    register int i, j, t;
    register int *p = &k;
-   char *base = basep;
+   short *base = basep;
 
    while (hi > lo)
    {