Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a14beb2d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix implicit cast from ssize_t to size_t in KeyedVector.h"

parents 2dc28bcf 0878f716
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue)
template<typename KEY, typename VALUE> inline
const VALUE& DefaultKeyedVector<KEY,VALUE>::valueFor(const KEY& key) const {
    ssize_t i = this->indexOfKey(key);
    return i >= 0 ? KeyedVector<KEY,VALUE>::valueAt(i) : mDefault;
    return i >= 0 ? KeyedVector<KEY, VALUE>::valueAt(static_cast<size_t>(i)) : mDefault;
}

}  // namespace android