summaryrefslogtreecommitdiffstats
path: root/Vector.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-28 12:17:52 +0200
committercgzones <cgzones@googlemail.com>2020-09-29 10:44:42 +0200
commit843949131aa75312086bea6a50408e09d82f5209 (patch)
tree00d7428e6df17e48ca6c77e703b225c7e3cfdf1d /Vector.c
parent214c742ae176078c3b081e1598b3fbf0cc122f77 (diff)
Drop redundant casts to the same type
Diffstat (limited to 'Vector.c')
-rw-r--r--Vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Vector.c b/Vector.c
index e51fd7b1..20578851 100644
--- a/Vector.c
+++ b/Vector.c
@@ -309,7 +309,7 @@ inline int Vector_indexOf(Vector* this, void* search_, Object_Compare compare) {
assert(compare);
assert(Vector_isConsistent(this));
for (int i = 0; i < this->items; i++) {
- Object* o = (Object*)this->array[i];
+ Object* o = this->array[i];
assert(o);
if (compare(search, o) == 0)
return i;

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