cvs commit: src/lib/libc/stdlib qsort.c

David Schultz das at FreeBSD.org
Mon Jan 14 01:21:34 PST 2008


das         2008-01-14 09:21:34 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      qsort.c 
  Log:
  Changing 'r' to a size_t in the previous commit turned quicksort
  into slowsort for some sequences because different parts of the
  code used 'r' to store two different things, one of which was
  signed. Clean things up by splitting 'r' into two variables, and
  use a more meaningful name.
  
  Revision  Changes    Path
  1.15      +5 -4      src/lib/libc/stdlib/qsort.c


More information about the cvs-src mailing list