summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-06 17:14:06 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-01-06 17:14:06 +0100
commit330d4fe22fe13612426a25c30cf29c2166bf4845 (patch)
tree81809517902e49feff0dc6fabcf8258d2ceb965f
parent8e10cde8008919b1109515f6edcc219c17ac7515 (diff)
Unify prototype of Vector_get
Vector_get() currently takes a `const Vector*` in debug mode and a `Vector*` else.
-rw-r--r--Vector.h2
1 files changed, 1 insertions, 1 deletions
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];
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy