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
This commit is contained in:
parent
cc05424e44
commit
3228756324
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue