commit | 403ec9f15a9cf2fedea2e2e0a24421dc30625140 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Fri May 30 14:40:13 2014 +0100 |
committer | Narayan Kamath <narayan@google.com> | Fri May 30 14:40:13 2014 +0100 |
tree | 6d7581bd5dd70f59bc91193caf990613cd0d6281 | |
parent | 63645c69e03cf3862c52cfde6cbd5f5143ccd38a [diff] |
Fix flattening/unflattening of android::Sensor. Write string lengths as uint32_t so that their width is the same on 32 and 64 bit processes. Note that this fixes another bug as a side effect; getFlattenedSize was assuming that sizeof(uint32_t) == sizeof(size_t). Change-Id: I7b6e3993e1f1ac45c14832ce59c59e0772855a2f