This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BUG: qsort reorders elements in already sorted array


On Wed, Jun 04, 2003 at 05:50:16PM +0200, Corinna Vinschen wrote:
> Second, it's not clear to me why in the next step the first element
> is dropped from the range of entries which have to be compared.
> `pa = pb = (char *) a + es;' just ignores the first element in the
> following core implementation.  But the map3 stuff called before doesn't

s/map3/med3/

> make sure that the first element is already in order.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]