diff options
author | 2013-02-06 20:50:17 -0800 | |
---|---|---|
committer | 2013-02-06 20:50:17 -0800 | |
commit | 7eb4db35935237a6bd029d5bafda97fa5d4d905c (patch) | |
tree | 9712164133313b6aadce230e38e82d4356b94874 /libs/androidfw/Input.cpp | |
parent | a0d547b43b3508c7253da234f529acf60d00fd13 (diff) | |
parent | b9185fd1ffd85239e3ab10ab34cb9d8508970fb4 (diff) |
am b9185fd1: Merge "Fix PointerCoords Parcel incorrectly storing values as Int32"
# By Ilya Polenov
# Via Gerrit Code Review
* commit 'b9185fd1ffd85239e3ab10ab34cb9d8508970fb4':
Fix PointerCoords Parcel incorrectly storing values as Int32
Diffstat (limited to 'libs/androidfw/Input.cpp')
-rw-r--r-- | libs/androidfw/Input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/Input.cpp b/libs/androidfw/Input.cpp index 97b0ec127b59..05b62bbb831f 100644 --- a/libs/androidfw/Input.cpp +++ b/libs/androidfw/Input.cpp @@ -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; } |