aboutsummaryrefslogtreecommitdiff
path: root/vec.c
diff options
context:
space:
mode:
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; }