Fix alignment mask, sorry for the noise.

This commit is contained in:
Michael Lotz
2011-12-10 19:09:30 +01:00
parent 82929f8a76
commit 80e6a84bf0
+1 -1
View File
@@ -323,7 +323,7 @@ void *
memalign(size_t alignment, size_t size) memalign(size_t alignment, size_t size)
{ {
// pseudo alignment by just upping the size // pseudo alignment by just upping the size
size = (size + alignment - 1) & ~alignment; size = (size + alignment - 1) & ~(alignment - 1);
return malloc(size); return malloc(size);
} }