diff options
author | tron <tron@openttd.org> | 2005-09-23 14:21:39 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-23 14:21:39 +0000 |
commit | 35ce780bb6df5135da977ce78f898d17233f3d47 (patch) | |
tree | 2798dc31a6fc841bb7078e393d8d1da6d95f183e | |
parent | 7ee0b8ac86604c34f299256a6b33b1e3e1ebbc6e (diff) | |
download | openttd-35ce780bb6df5135da977ce78f898d17233f3d47.tar.xz |
(svn r2976) -Fix: Align settings pool items to the size of void* to fix bus errors on 64bit architectures which require aligned variables
-rw-r--r-- | settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c index 9e3580299..8cc0ddd97 100644 --- a/settings.c +++ b/settings.c @@ -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) { |