[xiph-commits] r10708 - branches/lowmem-branch/Tremor

giles at svn.xiph.org giles at svn.xiph.org
Sun Jan 8 17:50:36 PST 2006


Author: giles
Date: 2006-01-08 17:50:35 -0800 (Sun, 08 Jan 2006)
New Revision: 10708

Modified:
   branches/lowmem-branch/Tremor/vorbisfile.c
Log:
Port of appropriate warning eliminations from trunk, correcting two 
signedness mismatches. Issue #622.


Modified: branches/lowmem-branch/Tremor/vorbisfile.c
===================================================================
--- branches/lowmem-branch/Tremor/vorbisfile.c	2006-01-09 01:45:05 UTC (rev 10707)
+++ branches/lowmem-branch/Tremor/vorbisfile.c	2006-01-09 01:50:35 UTC (rev 10708)
@@ -69,7 +69,7 @@
 static long _get_data(OggVorbis_File *vf){
   errno=0;
   if(vf->datasource){
-    char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);
+    unsigned char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);
     long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
     if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
     if(bytes==0 && errno)return -1;
@@ -716,7 +716,7 @@
      previously read data (as we may be reading from a non-seekable
      stream) */
   if(initial){
-    char *buffer=ogg_sync_bufferin(vf->oy,ibytes);
+    unsigned char *buffer=ogg_sync_bufferin(vf->oy,ibytes);
     memcpy(buffer,initial,ibytes);
     ogg_sync_wrote(vf->oy,ibytes);
   }



More information about the commits mailing list