Skip to content

Commit

Permalink
fix: changed sizeof() argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rod committed Oct 19, 2023
1 parent e5dad3f commit 81ca927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_structures/dynamic_array/dynamic_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void *add(dynamic_array_t *da, const void *value)
if (da->size >= da->capacity)
{
void **newItems =
realloc(da->items, (da->capacity <<= 1) * sizeof(void **));
realloc(da->items, (da->capacity <<= 1) * sizeof(void *));

da->items = newItems;
}
Expand Down

0 comments on commit 81ca927

Please sign in to comment.