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

Commit a18cee52 authored by Dan Albert's avatar Dan Albert
Browse files

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
parent 47c1cf4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) { }