View | Details | Raw Unified | Return to bug 135718 | Differences between
and this patch

Collapse All | Expand All

(-)lib/libc/stdlib/qsort.c (-3 / +4 lines)
Lines 59-66 Link Here
59
        } while (--i > 0);				\
59
        } while (--i > 0);				\
60
}
60
}
61
61
62
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
62
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(int) || \
63
	es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
63
	es % sizeof(int) ? 2 : ((char *)a - (char *)0) % sizeof(long) ? 1 : \
64
	es != sizeof(long);
64
65
65
static inline void
66
static inline void
66
swapfunc(a, b, n, swaptype)
67
swapfunc(a, b, n, swaptype)
Lines 68-74 Link Here
68
	int n, swaptype;
69
	int n, swaptype;
69
{
70
{
70
	if(swaptype <= 1)
71
	if(swaptype <= 1)
71
		swapcode(long, a, b, n)
72
		swapcode(int, a, b, n)
72
	else
73
	else
73
		swapcode(char, a, b, n)
74
		swapcode(char, a, b, n)
74
}
75
}

Return to bug 135718