diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:49:46 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:49:46 +0000 |
commit | 3228756324a3afa579ac0da8319cc24bb0147f15 (patch) | |
tree | c1c049e65169d13bc9ad453839df4d83a743e761 | |
parent | cc05424e4456fc9fa3eba49b97bf1406d540b3c3 (diff) | |
download | rockbox-3228756324a3afa579ac0da8319cc24bb0147f15.tar.gz rockbox-3228756324a3afa579ac0da8319cc24bb0147f15.zip |
Fix yellows relvealed by the ABS() rework tonight. The abs() didn't seem to make much sense there anyway. Thanks Dave Chapman.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22142 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/zxbox/helpers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/zxbox/helpers.c b/apps/plugins/zxbox/helpers.c index fac4ba0620..db57ea8e02 100644 --- a/apps/plugins/zxbox/helpers.c +++ b/apps/plugins/zxbox/helpers.c | |||
@@ -20,7 +20,7 @@ int my_putc(char c , int fd){ | |||
20 | void *my_malloc(size_t size) | 20 | void *my_malloc(size_t size) |
21 | { | 21 | { |
22 | static char *offset = NULL; | 22 | static char *offset = NULL; |
23 | static ssize_t totalSize = 0; | 23 | static size_t totalSize = 0; |
24 | char *ret; | 24 | char *ret; |
25 | 25 | ||
26 | int remainder = size % 4; | 26 | int remainder = size % 4; |
@@ -29,10 +29,10 @@ void *my_malloc(size_t size) | |||
29 | 29 | ||
30 | if (offset == NULL) | 30 | if (offset == NULL) |
31 | { | 31 | { |
32 | offset = rb->plugin_get_audio_buffer((size_t *)&totalSize); | 32 | offset = rb->plugin_get_audio_buffer(&totalSize); |
33 | } | 33 | } |
34 | 34 | ||
35 | if (size + 4 > abs(totalSize) ) | 35 | if (size + 4 > totalSize) |
36 | { | 36 | { |
37 | /* We've made our point. */ | 37 | /* We've made our point. */ |
38 | return NULL; | 38 | return NULL; |