From 45ca3b6336f1c6e7c2991319837132b607d482dc Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 8 Sep 2005 12:48:26 +0000 Subject: (svn r2924) Introduce the ALIGN() macro which aligns values to multiples of a power of 2, for exact semantics see the commment in macros.h --- settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings.c') diff --git a/settings.c b/settings.c index 65eef0544..9e3580299 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 = (size + 3) & ~3; // align everything to a 32 bit boundary + size = ALIGN(size, 4); // align everything to a 32 bit boundary // first check if there's memory in the next pool if (p->next && p->next->pos + size <= p->next->size) { -- cgit v1.2.3-54-g00ecf