| author | |
| committer | |
| log | b177e17d155c2f300188d82ea2753bbfd5d29038 |
| tree | 3fbf677e65e5c9322769a99f83d2415cf8876aa0 |
| parent | 546212ff7baee86d3408c465e906b52e2e585fe1 |
previously complained about `[*]const u8` having alignment 1 and `[*:0]const u16` having alignment 21 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/uefi/protocols/file_protocol.zig+1-1| ... | ... | @@ -153,7 +153,7 @@ pub const FileInfo = extern struct { |
| 153 | 153 | attribute: u64, |
| 154 | 154 | |
| 155 | 155 | pub fn getFileName(self: *const FileInfo) [*:0]const u16 { |
| 156 | return @as([*:0]const u16, @ptrCast(@as([*]const u8, @ptrCast(self)) + @sizeOf(FileInfo))); | |
| 156 | return @ptrCast(@alignCast(@as([*]const u8, @ptrCast(self)) + @sizeOf(FileInfo))); | |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | pub const efi_file_read_only: u64 = 0x0000000000000001; |