diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-06 17:14:06 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-01-06 17:14:06 +0100 |
commit | 330d4fe22fe13612426a25c30cf29c2166bf4845 (patch) | |
tree | 81809517902e49feff0dc6fabcf8258d2ceb965f | |
parent | 8e10cde8008919b1109515f6edcc219c17ac7515 (diff) |
Unify prototype of Vector_get
Vector_get() currently takes a `const Vector*` in debug mode and a
`Vector*` else.
-rw-r--r-- | Vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; } |