freetype: Update padding size of packed structs (#507)

Co-authored-by: Ali Chraghi <63465728+alichraghi@users.noreply.github.com>
This commit is contained in:
NewbLuck 2022-09-02 00:57:41 -06:00 committed by GitHub
parent 5dfd677a37
commit 2451d9e92b
Failed to generate hash of commit

View file

@ -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 {