diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-02-14 19:01:21 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-02-14 19:01:21 +0100 |
| commit | 54db532879ed3f6d76463a3ab3f3895bd41c861c (patch) | |
| tree | 0b9f52e01f612d0ac26003df96094dac2287bf5f /vec.c | |
| parent | 03632f51152e5e3b6bb74c29987709fbe97a9a69 (diff) | |
feat(test): Add test runner (debug is ok, 2 failures in release)
Diffstat (limited to 'vec.c')
| -rw-r--r-- | vec.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; } |
