Commit d276a1189d

fifty-six <ybham6@gmail.com>
2022-01-16 07:50:02
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 parent 4771ac2
Changed files (1)
lib
std
os
lib/std/os/uefi/protocols/edid_override_protocol.zig
@@ -8,7 +8,6 @@ pub const EdidOverrideProtocol = extern struct {
     _get_edid: fn (*const EdidOverrideProtocol, Handle, *u32, *usize, *?[*]u8) callconv(.C) Status,
 
     /// Returns policy information and potentially a replacement EDID for the specified video output device.
-    /// attributes must be align(4)
     pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status {
         return self._get_edid(self, handle, attributes, edid_size, edid);
     }
@@ -24,7 +23,7 @@ pub const EdidOverrideProtocol = extern struct {
 };
 
 pub const EdidOverrideProtocolAttributes = packed struct {
-    dont_override: bool,
+    dont_override: bool align(4),
     enable_hot_plug: bool,
     _pad: u30 = 0,
 };