From 8aa5bd11b21dd85cb0fadebeeb7c506f85237266 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 3 Mar 2006 02:27:19 +0000 Subject: Long policy git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8891 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/lib/codeclib.c | 6 +++--- apps/codecs/lib/codeclib.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/codecs/lib') diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c index 917970ba8d..e6780c68fe 100644 --- a/apps/codecs/lib/codeclib.c +++ b/apps/codecs/lib/codeclib.c @@ -26,8 +26,8 @@ struct codec_api *local_rb; -int mem_ptr; -int bufsize; +long mem_ptr; +long bufsize; unsigned char* mp3buf; // The actual MP3 buffer from Rockbox unsigned char* mallocbuf; // 512K from the start of MP3 buffer unsigned char* filebuf; // The rest of the MP3 buffer @@ -56,7 +56,7 @@ void* codec_malloc(size_t size) { void* x; - if (mem_ptr + (int)size > bufsize) + if (mem_ptr + (long)size > bufsize) return NULL; x=&mallocbuf[mem_ptr]; diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index c2e7869aa4..00b60c3e92 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h @@ -24,8 +24,8 @@ #define MALLOC_BUFSIZE (512*1024) -extern int mem_ptr; -extern int bufsize; +extern long mem_ptr; +extern long bufsize; extern unsigned char* mp3buf; // The actual MP3 buffer from Rockbox extern unsigned char* mallocbuf; // 512K from the start of MP3 buffer extern unsigned char* filebuf; // The rest of the MP3 buffer -- cgit v1.2.3