summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/zxbox/helpers.c6
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){
void *my_malloc(size_t size)
{
static char *offset = NULL;
- static ssize_t totalSize = 0;
+ static size_t totalSize = 0;
char *ret;
int remainder = size % 4;
@@ -29,10 +29,10 @@ void *my_malloc(size_t size)
if (offset == NULL)
{
- offset = rb->plugin_get_audio_buffer((size_t *)&totalSize);
+ offset = rb->plugin_get_audio_buffer(&totalSize);
}
- if (size + 4 > abs(totalSize) )
+ if (size + 4 > totalSize)
{
/* We've made our point. */
return NULL;