diff options
-rw-r--r-- | apps/plugins/lua/tlsf_helper.c | 3 | ||||
-rw-r--r-- | lib/tlsf/src/tlsf.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/lua/tlsf_helper.c b/apps/plugins/lua/tlsf_helper.c index 664d87c34e..e0da99f6fb 100644 --- a/apps/plugins/lua/tlsf_helper.c +++ b/apps/plugins/lua/tlsf_helper.c | |||
@@ -95,5 +95,6 @@ void *get_new_area(size_t *size) | |||
95 | return audiobuf_ptr; | 95 | return audiobuf_ptr; |
96 | } | 96 | } |
97 | 97 | ||
98 | return ((void *) ~0); | 98 | *size = 0; |
99 | return ((void *) ~0u); | ||
99 | } | 100 | } |
diff --git a/lib/tlsf/src/tlsf.c b/lib/tlsf/src/tlsf.c index 7943770975..9df176ce16 100644 --- a/lib/tlsf/src/tlsf.c +++ b/lib/tlsf/src/tlsf.c | |||
@@ -469,7 +469,7 @@ static __inline__ void corrupt(const char *msg) { | |||
469 | void * __attribute__((weak)) get_new_area(size_t * size) | 469 | void * __attribute__((weak)) get_new_area(size_t * size) |
470 | { | 470 | { |
471 | (void)size; | 471 | (void)size; |
472 | return ((void *) ~0); | 472 | return ((void *) ~0u); |
473 | } | 473 | } |
474 | #endif | 474 | #endif |
475 | 475 | ||