diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-08-07 10:55:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 10:55:03 +0100 |
| commit | fd9cfc39f53fae7fad4eadf9f1d8943f7e2c03b1 (patch) | |
| tree | 55910d5395d41c11b771c34057b1b16affafd9e2 /lib/std/os | |
| parent | 04fe1bfe3ceabd632183a85101cddeeec11f0745 (diff) | |
| parent | 7c35070b901d9181ec3c666480a91eddf6c1abce (diff) | |
| download | zig-fd9cfc39f53fae7fad4eadf9f1d8943f7e2c03b1.tar.gz zig-fd9cfc39f53fae7fad4eadf9f1d8943f7e2c03b1.zip | |
Merge pull request #24199 from Justus2308/24106-fmt-casts
zig fmt: canonicalize nested cast builtin order
Diffstat (limited to 'lib/std/os')
| -rw-r--r-- | lib/std/os/uefi/tables.zig | 2 | ||||
| -rw-r--r-- | lib/std/os/uefi/tables/runtime_services.zig | 2 | ||||
| -rw-r--r-- | lib/std/os/windows.zig | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/os/uefi/tables.zig b/lib/std/os/uefi/tables.zig index f8541dc321..ad163dbdbf 100644 --- a/lib/std/os/uefi/tables.zig +++ b/lib/std/os/uefi/tables.zig @@ -154,7 +154,7 @@ pub const MemoryMapSlice = struct { pub fn getUnchecked(self: MemoryMapSlice, index: usize) *MemoryDescriptor { const offset: usize = index * self.info.descriptor_size; - return @alignCast(@ptrCast(self.ptr[offset..])); + return @ptrCast(@alignCast(self.ptr[offset..])); } }; diff --git a/lib/std/os/uefi/tables/runtime_services.zig b/lib/std/os/uefi/tables/runtime_services.zig index 63bc9ad531..1881aab7f7 100644 --- a/lib/std/os/uefi/tables/runtime_services.zig +++ b/lib/std/os/uefi/tables/runtime_services.zig @@ -353,7 +353,7 @@ pub const RuntimeServices = extern struct { reset_type, reset_status, if (data) |d| d.len else 0, - if (data) |d| @alignCast(@ptrCast(d.ptr)) else null, + if (data) |d| @ptrCast(@alignCast(d.ptr)) else null, ); } diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index df325e1785..a2d62f42ec 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -202,7 +202,7 @@ pub fn CreatePipe(rd: *HANDLE, wr: *HANDLE, sattr: *const SECURITY_ATTRIBUTES) C const name = UNICODE_STRING{ .Length = len, .MaximumLength = len, - .Buffer = @constCast(@ptrCast(str)), + .Buffer = @ptrCast(@constCast(str)), }; const attrs = OBJECT_ATTRIBUTES{ .ObjectName = @constCast(&name), |
