This commit is contained in:
twinaphex 2016-05-15 06:07:25 +02:00
parent b56f880c44
commit 271f4b6f8d

View File

@ -29,7 +29,7 @@ void *memalign_alloc(size_t boundary, size_t size)
{ {
void **place = NULL; void **place = NULL;
uintptr_t addr = 0; uintptr_t addr = 0;
void *ptr = malloc(boundary + size + sizeof(uintptr_t)); void *ptr = (void*)malloc(boundary + size + sizeof(uintptr_t));
if (!ptr) if (!ptr)
return NULL; return NULL;