forked from len0rd/rockbox
fix gcc4 (un)signed warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8124 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5c1f9859e4
commit
76667e2a5b
8 changed files with 20 additions and 20 deletions
|
|
@ -63,7 +63,7 @@
|
|||
static long _get_data(OggVorbis_File *vf){
|
||||
errno=0;
|
||||
if(vf->datasource){
|
||||
char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);
|
||||
char *buffer=(char *)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);
|
||||
|
|
@ -682,7 +682,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);
|
||||
char *buffer=(char *)ogg_sync_bufferin(vf->oy,ibytes);
|
||||
memcpy(buffer,initial,ibytes);
|
||||
ogg_sync_wrote(vf->oy,ibytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue