[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#279044: libc6: qsort() doesn't sort for large size



On Sun, Oct 31, 2004 at 10:35:02AM +0100, Thomas Koenig wrote:
> int mycomp(void const *p1, void const *p2) {
>     mydata const *v1, *v2;
>     v1 = p1;
>     v2 = p2;
>     return (v1->key) < (v2->key);
> }

Change that return to return (v1->key) - (v2->key) and it will
work as expected.


Kurt




Reply to: