From 330d4fe22fe13612426a25c30cf29c2166bf4845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 6 Jan 2021 17:14:06 +0100 Subject: Unify prototype of Vector_get Vector_get() currently takes a `const Vector*` in debug mode and a `Vector*` else. --- Vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vector.h b/Vector.h index ee514136..875f361d 100644 --- a/Vector.h +++ b/Vector.h @@ -58,7 +58,7 @@ unsigned int Vector_count(const Vector* this); #else /* NDEBUG */ -static inline Object* Vector_get(Vector* this, int idx) { +static inline Object* Vector_get(const Vector* this, int idx) { return this->array[idx]; } -- cgit v1.2.3