aboutsummaryrefslogtreecommitdiff
path: root/collections
diff options
context:
space:
mode:
Diffstat (limited to 'collections')
-rw-r--r--collections/vector/vector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/collections/vector/vector.c b/collections/vector/vector.c
index f14c302..d87ae76 100644
--- a/collections/vector/vector.c
+++ b/collections/vector/vector.c
@@ -79,7 +79,7 @@ vec *root;
if (!root)
return;
- root->base = reallocarray(root->base, root->limit * 2, sizeof(void*));
+ root->base = realloc(root->base, root->limit * 2 * sizeof(void*));
assert(root->base);
}
@@ -261,7 +261,7 @@ int n;
for (i = root->limit; i < root->end + n; i*=2);
- root->base = reallocarray(root->base, i, sizeof(void*));
+ root->base = realloc(root->base, i * sizeof(void*));
}
void vec_clear(root)