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

Commit 6b7fcc8f authored by Jeffrey Brown's avatar Jeffrey Brown Committed by Android Git Automerger
Browse files

am 75701e8f: am 7eb4db35: am b9185fd1: Merge "Fix PointerCoords Parcel...

am 75701e8f: am 7eb4db35: am b9185fd1: Merge "Fix PointerCoords Parcel incorrectly storing values as Int32"

# By Ilya Polenov
# Via Android Git Automerger (2) and Gerrit Code Review (2)
* commit '75701e8f':
  Fix PointerCoords Parcel incorrectly storing values as Int32
parents 8ca4642b 75701e8f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ status_t PointerCoords::readFromParcel(Parcel* parcel) {
    }

    for (uint32_t i = 0; i < count; i++) {
        values[i] = parcel->readInt32();
        values[i] = parcel->readFloat();
    }
    return OK;
}
@@ -235,7 +235,7 @@ status_t PointerCoords::writeToParcel(Parcel* parcel) const {

    uint32_t count = __builtin_popcountll(bits);
    for (uint32_t i = 0; i < count; i++) {
        parcel->writeInt32(values[i]);
        parcel->writeFloat(values[i]);
    }
    return OK;
}