Make things more explicit
This commit is contained in:
parent
b6dab1029d
commit
99fe302562
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user