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

Commit b4c460cc authored by Chad Brubaker's avatar Chad Brubaker Committed by Android Git Automerger
Browse files

am b5d6ec7c: am e59cb43e: Fix writeByteArray/writeInt32Array size on x64

* commit 'b5d6ec7c':
  Fix writeByteArray/writeInt32Array size on x64
parents 49b2e136 b5d6ec7c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -735,9 +735,9 @@ status_t Parcel::writeInt32Array(size_t len, const int32_t *val) {
    }

    if (!val) {
        return writeAligned(-1);
        return writeInt32(-1);
    }
    status_t ret = writeAligned(len);
    status_t ret = writeInt32(static_cast<uint32_t>(len));
    if (ret == NO_ERROR) {
        ret = write(val, len * sizeof(*val));
    }
@@ -751,9 +751,9 @@ status_t Parcel::writeByteArray(size_t len, const uint8_t *val) {
    }

    if (!val) {
        return writeAligned(-1);
        return writeInt32(-1);
    }
    status_t ret = writeAligned(len);
    status_t ret = writeInt32(static_cast<uint32_t>(len));
    if (ret == NO_ERROR) {
        ret = write(val, len * sizeof(*val));
    }