aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2020-09-09 20:47:45 -0400
committerTucker Evans <tuckerevans24@gmail.com>2020-09-09 20:47:45 -0400
commitd9e662b23f8c300288ccc09e2350c666c047d596 (patch)
treeb709f60333c32e95d49e582f16482c525d67588c
parent5df2bcfe39f124451480cb3bc4c094c00392490f (diff)
Fix vector was not increasing its limit when resized
-rw-r--r--collections/vector/vector.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/collections/vector/vector.c b/collections/vector/vector.c
index d87ae76..d40959d 100644
--- a/collections/vector/vector.c
+++ b/collections/vector/vector.c
@@ -81,6 +81,7 @@ vec *root;
root->base = realloc(root->base, root->limit * 2 * sizeof(void*));
assert(root->base);
+ root->limit *= 2;
}
vec* vec_cp(root)