lpool: use offset to next, avoids pointer alignment requirments
This commit is contained in:
@@ -26,6 +26,7 @@ int main(int argc, char *argv[])
|
||||
printf("Total allocs = %zu\n", allocs);
|
||||
printf("alloc succeded = %d\n", lpool_alloc(&pool) != NULL);
|
||||
lpool_free(&pool, data);
|
||||
|
||||
printf("alloc succeded = %d\n", lpool_alloc(&pool) != NULL);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user