Make things more explicit

This commit is contained in:
Frank Denis 2017-12-16 13:12:07 +01:00
parent b6dab1029d
commit 99fe302562

View File

@ -67,7 +67,7 @@ static __attribute__((malloc)) void *mempool_alloc(size_t size)
return NULL;
}
mempool[mempool_idx].size = size;
return mempool[mempool_idx++].pnt = malloc(size);
return (mempool[mempool_idx++].pnt = (void *) malloc(size));
}
static void mempool_free(void *pnt)