Showing
1 changed file
with
1 additions
and
1 deletions
@@ -30,7 +30,7 @@ inline | @@ -30,7 +30,7 @@ inline | ||
30 | void | 30 | void |
31 | _darrResize(TR_Dynarray this, size_t index) | 31 | _darrResize(TR_Dynarray this, size_t index) |
32 | { | 32 | { |
33 | - if (index > (long)this->size - 1) { | 33 | + if (index > (long)this->size - 1) { |
34 | void * new_data = TR_calloc(index + 1, sizeof(void *)); | 34 | void * new_data = TR_calloc(index + 1, sizeof(void *)); |
35 | memcpy(new_data, this->data, this->size * sizeof(void *)); | 35 | memcpy(new_data, this->data, this->size * sizeof(void *)); |
36 | TR_MEM_FREE(this->data); | 36 | TR_MEM_FREE(this->data); |
Please
register
or
login
to post a comment