mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Drop redundant casts to the same type
This commit is contained in:

committed by
cgzones

parent
214c742ae1
commit
843949131a
2
Vector.c
2
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;
|
||||
|
Reference in New Issue
Block a user