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

Commit 9d19176b authored by Stephen Hines's avatar Stephen Hines Committed by android-build-merger
Browse files

Fix build break: Make sure we use use unsigned comparisons.

am: 803ed290

Change-Id: I06b2d8247a44204cfe2a760085616e18773efb9a
parents 973fcc56 803ed290
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -697,13 +697,13 @@ status_t Parcel::unsafeReadTypedVector(
        return UNEXPECTED_NULL;
    }

    if (val->max_size() < size) {
    if (val->max_size() < static_cast<size_t>(size)) {
        return NO_MEMORY;
    }

    val->resize(static_cast<size_t>(size));

    if (val->size() < size) {
    if (val->size() < static_cast<size_t>(size)) {
        return NO_MEMORY;
    }