summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gevector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gevector.h b/src/gevector.h
index cf0b6f9..ce86599 100644
--- a/src/gevector.h
+++ b/src/gevector.h
@@ -22,7 +22,7 @@
{ \
*vec = (struct n) { \
.gfactor = gfactor == 0 ? 1.5f : gfactor, \
- .capacity = capacity, \
+ .capacity = capacity == 0 ? 16 : capacity, \
.size = 0, \
.items = calloc(capacity == 0 ? 16 : capacity, \
sizeof(t)) \