authorgravatar for ybham6@gmail.comfifty-six <ybham6@gmail.com> 2022-01-16 01:50:02-05:00
committergravatar for ybham6@gmail.comfifty-six <ybham6@gmail.com> 2022-01-16 02:05:27-05:00
logd276a1189de15f85523a0e6844d0fd316306838a
tree398971b0e737a709ec9136ac6f7c1f71d0e8dcfc
parent4771ac298b0c692750524cb7e94eaf0b4343ce2b

std/os/uefi: Align first field of EdidOverrideProtocolAttributes to 4

This makes the struct align(4), which allows it to be passed as flags more easily.

1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/os/uefi/protocols/edid_override_protocol.zig+1-2
......@@ -8,7 +8,6 @@ pub const EdidOverrideProtocol = extern struct {
88 _get_edid: fn (*const EdidOverrideProtocol, Handle, *u32, *usize, *?[*]u8) callconv(.C) Status,
99
1010 /// Returns policy information and potentially a replacement EDID for the specified video output device.
11 /// attributes must be align(4)
1211 pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status {
1312 return self._get_edid(self, handle, attributes, edid_size, edid);
1413 }
......@@ -24,7 +23,7 @@ pub const EdidOverrideProtocol = extern struct {
2423};
2524
2625pub const EdidOverrideProtocolAttributes = packed struct {
27 dont_override: bool,
26 dont_override: bool align(4),
2827 enable_hot_plug: bool,
2928 _pad: u30 = 0,
3029};