aboutsummaryrefslogtreecommitdiff
path: root/vec.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-02-14 19:01:21 +0100
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-02-14 19:01:21 +0100
commit54db532879ed3f6d76463a3ab3f3895bd41c861c (patch)
tree0b9f52e01f612d0ac26003df96094dac2287bf5f /vec.c
parent03632f51152e5e3b6bb74c29987709fbe97a9a69 (diff)
feat(test): Add test runner (debug is ok, 2 failures in release)
Diffstat (limited to 'vec.c')
-rw-r--r--vec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/vec.c b/vec.c
index 8923f19..a8fd57a 100644
--- a/vec.c
+++ b/vec.c
@@ -24,8 +24,4 @@ void Vec_push(Arena *a, Vec *v, void *data) {
v->len++;
}
-void *_Vec_get(Vec *v, int pos) {
- // printf("get: length=%lu, cap=%lu, pos=%d\n", v->len, v->cap, pos);
- // printf("get: start=%p, asked=%p\n", v->data, v->data + v->size * pos);
- return v->data + v->size * pos;
-}
+void *_Vec_get(Vec *v, int pos) { return v->data + v->size * pos; }