From 2451d9e92b6758fa45b91576bcc6a369cd6ff1cf Mon Sep 17 00:00:00 2001 From: NewbLuck Date: Fri, 2 Sep 2022 00:57:41 -0600 Subject: [PATCH] freetype: Update padding size of packed structs (#507) Co-authored-by: Ali Chraghi <63465728+alichraghi@users.noreply.github.com> --- libs/freetype/src/freetype.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/freetype/src/freetype.zig b/libs/freetype/src/freetype.zig index 82b16054..b47f9584 100644 --- a/libs/freetype/src/freetype.zig +++ b/libs/freetype/src/freetype.zig @@ -127,7 +127,7 @@ pub const FaceFlags = packed struct { svg: bool = false, sbix: bool = false, sbix_overlay: bool = false, - _padding: u45 = 0, + _padding: if (@sizeof(c_long) == 4) u13 else u45 = 0, }; pub const FSType = packed struct { @@ -144,7 +144,7 @@ pub const FSType = packed struct { pub const StyleFlags = packed struct { italic: bool = false, bold: bool = false, - _padding: u62 = 0, + _padding: if (@sizeof(c_long) == 4) u30 else u62 = 0, }; pub const OpenFlags = packed struct {