diff options
author | Dan Albert <danalbert@google.com> | 2015-04-07 18:38:42 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-04-09 10:41:38 -0700 |
commit | a18cee52d953196ce12550df2ac5a14fbf359802 (patch) | |
tree | eeb5ce69df8d5b1ea15ad991fc6ed3d449802faf /include | |
parent | 47c1cf4b35616059409a0674382c2318494e877b (diff) | |
download | frameworks_base-a18cee52d953196ce12550df2ac5a14fbf359802.zip frameworks_base-a18cee52d953196ce12550df2ac5a14fbf359802.tar.gz frameworks_base-a18cee52d953196ce12550df2ac5a14fbf359802.tar.bz2 |
Ensure alignment of Res_png_9patch.
This doesn't alter the alignment of the data within the struct, but
enforces that this structure will be appropriately aligned when used.
The image_info struct has this struct preceded by a bool, which causes
odd alignment for the members of this struct.
Change-Id: Ia2ef5c81b2f961c0f61858a10a7821d82f600919
Diffstat (limited to 'include')
-rw-r--r-- | include/androidfw/ResourceTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/androidfw/ResourceTypes.h b/include/androidfw/ResourceTypes.h index 8673219..0822afd 100644 --- a/include/androidfw/ResourceTypes.h +++ b/include/androidfw/ResourceTypes.h @@ -112,7 +112,7 @@ struct __assertChar16Size { * * The PNG chunk type is "npTc". */ -struct Res_png_9patch +struct alignas(uintptr_t) Res_png_9patch { Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), yDivsOffset(0), colorsOffset(0) { } |