(svn r2976) -Fix: Align settings pool items to the size of void* to fix bus errors on 64bit architectures which require aligned variables

pull/155/head
tron 19 years ago
parent a896add679
commit 96fa84358d

@ -50,7 +50,7 @@ static void *pool_alloc(SettingsMemoryPool **pool, uint size)
uint pos;
SettingsMemoryPool *p = *pool;
size = ALIGN(size, 4); // align everything to a 32 bit boundary
size = ALIGN(size, sizeof(void*));
// first check if there's memory in the next pool
if (p->next && p->next->pos + size <= p->next->size) {

Loading…
Cancel
Save