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

Commit 75701e8f authored by Jeffrey Brown's avatar Jeffrey Brown Committed by Android Git Automerger
Browse files

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

# By Ilya Polenov
# Via Gerrit Code Review (2) and Android Git Automerger (1)
* commit '7eb4db35':
  Fix PointerCoords Parcel incorrectly storing values as Int32
parents edc93331 7eb4db35
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -221,7 +221,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;
}
@@ -231,7 +231,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;
}