diff options
author | Ralph Giles <giles@xiph.org> | 2006-01-09 01:50:35 +0000 |
---|---|---|
committer | Ralph Giles <giles@xiph.org> | 2006-01-09 01:50:35 +0000 |
commit | 851cd60ce00641d8dd00d19ea722b632e00629c0 (patch) | |
tree | 130b84bad772a6b03db5bec41f4ed4d509ff9633 | |
parent | 1631064bd125ffa62a48f40ba121186b92db2977 (diff) | |
download | tremor-851cd60ce00641d8dd00d19ea722b632e00629c0.tar.gz |
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
-rw-r--r-- | vorbisfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vorbisfile.c b/vorbisfile.c index 053755e..aafc308 100644 --- a/vorbisfile.c +++ b/vorbisfile.c @@ -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); } |