Commit 851cd60c authored by Ralph Giles's avatar Ralph Giles

Port of appropriate warning eliminations from trunk, correcting two

signedness mismatches. Issue #622.


git-svn-id: https://svn.xiph.org/branches/lowmem-branch/Tremor@10708 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 1631064b
......@@ -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 @@ static int _ov_open1(void *f,OggVorbis_File *vf,char *initial,
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment