Fix alignment mask, sorry for the noise.
This commit is contained in:
parent
82929f8a76
commit
80e6a84bf0
@ -323,7 +323,7 @@ void *
|
||||
memalign(size_t alignment, size_t size)
|
||||
{
|
||||
// pseudo alignment by just upping the size
|
||||
size = (size + alignment - 1) & ~alignment;
|
||||
size = (size + alignment - 1) & ~(alignment - 1);
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user