diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-03-03 02:27:19 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-03-03 02:27:19 +0000 |
commit | 8aa5bd11b21dd85cb0fadebeeb7c506f85237266 (patch) | |
tree | 845426bf3ab2855714125f9c12dd26f1c4022677 /apps/codecs/lib/codeclib.c | |
parent | 8ac3ae73c5f5a87dc4cddafe2b0d1a0f41e41bdd (diff) | |
download | rockbox-8aa5bd11b21dd85cb0fadebeeb7c506f85237266.tar.gz rockbox-8aa5bd11b21dd85cb0fadebeeb7c506f85237266.zip |
Long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/codeclib.c')
-rw-r--r-- | apps/codecs/lib/codeclib.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
26 | 26 | ||
27 | struct codec_api *local_rb; | 27 | struct codec_api *local_rb; |
28 | 28 | ||
29 | int mem_ptr; | 29 | long mem_ptr; |
30 | int bufsize; | 30 | long bufsize; |
31 | unsigned char* mp3buf; // The actual MP3 buffer from Rockbox | 31 | unsigned char* mp3buf; // The actual MP3 buffer from Rockbox |
32 | unsigned char* mallocbuf; // 512K from the start of MP3 buffer | 32 | unsigned char* mallocbuf; // 512K from the start of MP3 buffer |
33 | unsigned char* filebuf; // The rest of the MP3 buffer | 33 | unsigned char* filebuf; // The rest of the MP3 buffer |
@@ -56,7 +56,7 @@ void* codec_malloc(size_t size) | |||
56 | { | 56 | { |
57 | void* x; | 57 | void* x; |
58 | 58 | ||
59 | if (mem_ptr + (int)size > bufsize) | 59 | if (mem_ptr + (long)size > bufsize) |
60 | return NULL; | 60 | return NULL; |
61 | 61 | ||
62 | x=&mallocbuf[mem_ptr]; | 62 | x=&mallocbuf[mem_ptr]; |