~kdsch/c-modules

6d9b16171ff94519bf03e193d0c5919736310429 — Karl Schultheisz 5 months ago a75bc22
dynamic-array: rename misspelled identifier
1 files changed, 2 insertions(+), 2 deletions(-)

M dynamic-array.c
M dynamic-array.c => dynamic-array.c +2 -2
@@ 37,8 37,8 @@ array_grow(struct array *a)
	assert(a != NULL);

	const size_t growth_factor = 2;
	const size_t initial_capacityacity = 1;
	const size_t new_capacity = a->capacity == 0 ? initial_capacityacity : growth_factor * a->capacity;
	const size_t initial_capacity = 1;
	const size_t new_capacity = a->capacity == 0 ? initial_capacity : growth_factor * a->capacity;

	uint32_t *const members = realloc(a->members, sizeof(a->members) * new_capacity);