aboutsummaryrefslogtreecommitdiff
path: root/src/vec.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-08-23 15:31:28 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-08-27 11:45:01 +0200
commita44ce5c6f74fb777408b455ae21ca545447c0ade (patch)
treecc2bcf4713f4dcb48456be6396e4f7bf6d974733 /src/vec.c
parent03b645f22bfc7afadc5a8aa6d59edf0eba74a048 (diff)
json: parse negative numbers
Diffstat (limited to 'src/vec.c')
-rw-r--r--src/vec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vec.c b/src/vec.c
index a5c2fb4..e64db9b 100644
--- a/src/vec.c
+++ b/src/vec.c
@@ -5,7 +5,7 @@
#include "../include/vec.h"
Vec _Vec_new(Arena *a, size tsize, size cap, size align) {
- assert(cap > 0);
+ assert(cap > 0, "negative cap");
Vec v = {0};
v.tsize = tsize;
v.cap = cap;