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

Commit 803ed290 authored by Stephen Hines's avatar Stephen Hines
Browse files

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

The original CL was comparing signed and unsigned values, which triggers
a warning/error diagnostic.

Test: Built bullhead successfully.
Change-Id: I5fd6736690f9697b2b6c800f98a7ce3a6ada9c35
parent 7a79088e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -681,13 +681,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;
    }