Fix comment
This commit is contained in:
2
arena.h
2
arena.h
@@ -38,7 +38,7 @@ void *arena_alloc(Arena *a, size_t bytes)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty a
|
// Empty arena
|
||||||
if (a->head == NULL) {
|
if (a->head == NULL) {
|
||||||
size_t size = (bytes > ARENA_MIN_CAPACITY ? bytes : ARENA_MIN_CAPACITY);
|
size_t size = (bytes > ARENA_MIN_CAPACITY ? bytes : ARENA_MIN_CAPACITY);
|
||||||
a->head = malloc(sizeof(*a->head) + size);
|
a->head = malloc(sizeof(*a->head) + size);
|
||||||
|
|||||||
Reference in New Issue
Block a user