forked from len0rd/rockbox
Fix (hopefully) last aliasing bug (midiutil), and enable -fno-strict-aliasing again for zxbox and doom (no easy fix there)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25889 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
91249a5c7d
commit
7a994c1e7d
3 changed files with 5 additions and 5 deletions
|
@ -40,7 +40,7 @@ struct SynthObject voices[MAX_VOICES] IBSS_ATTR;
|
|||
void *alloc(int size)
|
||||
{
|
||||
static char *offset = NULL;
|
||||
static ssize_t totalSize = 0;
|
||||
static size_t totalSize = 0;
|
||||
char *ret;
|
||||
|
||||
int remainder = size % 4;
|
||||
|
@ -49,10 +49,10 @@ void *alloc(int size)
|
|||
|
||||
if (offset == NULL)
|
||||
{
|
||||
offset = rb->plugin_get_audio_buffer((size_t *)&totalSize);
|
||||
offset = rb->plugin_get_audio_buffer(&totalSize);
|
||||
}
|
||||
|
||||
if (size + 4 > totalSize)
|
||||
if (size + 4 > (int)totalSize)
|
||||
{
|
||||
printf("MALLOC BARF");
|
||||
printf("MALLOC BARF");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue