From 4d7e5dfbdc0a4cb1b3246999fa5bb6437d8afd98 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Thu, 13 Oct 2005 12:15:31 +0000 Subject: [PATCH] Use correct types to avoid sim warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7627 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/a52.c | 2 +- apps/codecs/mpa.c | 2 +- apps/codecs/wav.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/codecs/a52.c b/apps/codecs/a52.c index e3144fd2f9..fb881f8483 100644 --- a/apps/codecs/a52.c +++ b/apps/codecs/a52.c @@ -122,7 +122,7 @@ extern char iramend[]; /* this is the codec entry point */ enum codec_status codec_start(struct codec_api *api) { - size_t n; + long n; unsigned char *filebuf; /* Generic codec initialisation */ diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 66c181e74b..557274a637 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -72,7 +72,7 @@ void recalc_samplecount(void) enum codec_status codec_start(struct codec_api *api) { int status = 0; - size_t size; + long size; int file_end; int frame_skip; char *inputbuffer; diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index b1ac8272ee..ce3e48895c 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c @@ -213,7 +213,8 @@ enum codec_status codec_start(struct codec_api* api) int bytespersample=0; uint16_t bitspersample; uint32_t i; - size_t n, wavbufsize; + long n; + size_t wavbufsize; int endofstream; unsigned char* buf; uint16_t* wavbuf;