summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-10-13 13:52:03 +0000
committerThom Johansen <thomj@rockbox.org>2005-10-13 13:52:03 +0000
commit3de190d9d753a0b7f61e77cd8bf187629d1e74af (patch)
tree033afeeeeba3e92bf2b6f2b7616f6068220f48d9 /apps
parent4d7e5dfbdc0a4cb1b3246999fa5bb6437d8afd98 (diff)
downloadrockbox-3de190d9d753a0b7f61e77cd8bf187629d1e74af.tar.gz
rockbox-3de190d9d753a0b7f61e77cd8bf187629d1e74af.tar.bz2
rockbox-3de190d9d753a0b7f61e77cd8bf187629d1e74af.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/wav.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index ce3e48895c..2e668a4e35 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)