diff options
| author | Justus Klausecker <justus@klausecker.de> | 2025-08-03 14:53:52 +0200 |
|---|---|---|
| committer | Justus Klausecker <justus@klausecker.de> | 2025-08-03 14:59:56 +0200 |
| commit | 7c35070b901d9181ec3c666480a91eddf6c1abce (patch) | |
| tree | 74f6eddb4386054ad74aa04b9a506d1ccfb717dc /src/InternPool.zig | |
| parent | 81219493f87b8345446e387e71279d74f35b6824 (diff) | |
| download | zig-7c35070b901d9181ec3c666480a91eddf6c1abce.tar.gz zig-7c35070b901d9181ec3c666480a91eddf6c1abce.zip | |
zig fmt: apply new cast builtin order
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index ed922db742..f59bacc1b0 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -1365,7 +1365,7 @@ const Local = struct { capacity: u32, }; fn header(list: ListSelf) *Header { - return @alignCast(@ptrCast(list.bytes - bytes_offset)); + return @ptrCast(@alignCast(list.bytes - bytes_offset)); } pub fn view(list: ListSelf) View { const capacity = list.header().capacity; @@ -1574,7 +1574,7 @@ const Shard = struct { } }; fn header(map: @This()) *Header { - return @alignCast(@ptrCast(@as([*]u8, @ptrCast(map.entries)) - entries_offset)); + return @ptrCast(@alignCast(@as([*]u8, @ptrCast(map.entries)) - entries_offset)); } const Entry = extern struct { |
