[xiph-cvs] cvs commit: vorbis/lib floor1.c

Monty xiphmont at xiph.org
Thu Aug 16 13:31:40 PDT 2001



xiphmont    01/08/16 13:31:39

  Modified:    lib      floor1.c
  Log:
  fix a pointer type error passed to qsort

Revision  Changes    Path
1.14      +2 -2      vorbis/lib/floor1.c

Index: floor1.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/floor1.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- floor1.c	2001/08/16 01:36:57	1.13
+++ floor1.c	2001/08/16 20:31:38	1.14
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: floor backend 1 implementation
- last mod: $Id: floor1.c,v 1.13 2001/08/16 01:36:57 xiphmont Exp $
+ last mod: $Id: floor1.c,v 1.14 2001/08/16 20:31:38 xiphmont Exp $
 
  ********************************************************************/
 
@@ -226,7 +226,7 @@
 
   /* also store a sorted position index */
   for(i=0;i<n;i++)sortpointer[i]=info->postlist+i;
-  qsort(sortpointer,n,sizeof(int),icomp);
+  qsort(sortpointer,n,sizeof(int *),icomp);
 
   /* points from sort order back to range number */
   for(i=0;i<n;i++)look->forward_index[i]=sortpointer[i]-info->postlist;

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list