Drop redundant casts to the same type

This commit is contained in:
Christian Göttsche
2020-09-28 12:17:52 +02:00
committed by cgzones
parent 214c742ae1
commit 843949131a
9 changed files with 12 additions and 12 deletions

View File

@ -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;