From 3de190d9d753a0b7f61e77cd8bf187629d1e74af Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Thu, 13 Oct 2005 13:52:03 +0000 Subject: Previous fix introduced tons of comparison warnings, just cast for now instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7628 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/wav.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index ce3e488..2e668a4 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c @@ -213,8 +213,7 @@ enum codec_status codec_start(struct codec_api* api) int bytespersample=0; uint16_t bitspersample; uint32_t i; - long n; - size_t wavbufsize; + size_t n, wavbufsize; int endofstream; unsigned char* buf; uint16_t* wavbuf; @@ -249,7 +248,7 @@ enum codec_status codec_start(struct codec_api* api) rb->yield(); /* assume the WAV header is less than 1024 bytes */ - buf=rb->request_buffer(&n,1024); + buf=rb->request_buffer((long *)&n,1024); if (n<44) { return CODEC_ERROR; } @@ -449,7 +448,7 @@ enum codec_status codec_start(struct codec_api* api) } rb->seek_time = 0; } - wavbuf=rb->request_buffer(&n,chunksize); + wavbuf=rb->request_buffer((long *)&n,chunksize); wavbuf8 = (uint8_t*)wavbuf; if (n==0) -- cgit v1.1