From d282e075ef8469e031b29563a98731c54546484b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 24 Jan 2013 01:38:12 +0000 Subject: [PATCH] efl/eina: don't over align when the structure is already aligned. SVN revision: 83189 --- src/lib/eina/eina_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_mempool.c b/src/lib/eina/eina_mempool.c index 3898315..46ea7f5 100644 --- a/src/lib/eina/eina_mempool.c +++ b/src/lib/eina/eina_mempool.c @@ -343,5 +343,5 @@ eina_mempool_alignof(unsigned int size) align = 16; #endif - return ((size / align) + 1) * align; + return ((size / align) + (size % align ? 1 : 0)) * align; } -- 2.7.4