aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorJustus Klausecker <justus@klausecker.de>2025-08-03 14:53:52 +0200
committerJustus Klausecker <justus@klausecker.de>2025-08-03 14:59:56 +0200
commit7c35070b901d9181ec3c666480a91eddf6c1abce (patch)
tree74f6eddb4386054ad74aa04b9a506d1ccfb717dc /lib/std/array_hash_map.zig
parent81219493f87b8345446e387e71279d74f35b6824 (diff)
downloadzig-7c35070b901d9181ec3c666480a91eddf6c1abce.tar.gz
zig-7c35070b901d9181ec3c666480a91eddf6c1abce.zip
zig fmt: apply new cast builtin order
Diffstat (limited to 'lib/std/array_hash_map.zig')
-rw-r--r--lib/std/array_hash_map.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig
index ac9c70df8e..9ddd0fe2bd 100644
--- a/lib/std/array_hash_map.zig
+++ b/lib/std/array_hash_map.zig
@@ -2086,7 +2086,7 @@ const IndexHeader = struct {
/// Returns the attached array of indexes. I must match the type
/// returned by capacityIndexType.
fn indexes(header: *IndexHeader, comptime I: type) []Index(I) {
- const start_ptr: [*]Index(I) = @alignCast(@ptrCast(@as([*]u8, @ptrCast(header)) + @sizeOf(IndexHeader)));
+ const start_ptr: [*]Index(I) = @ptrCast(@alignCast(@as([*]u8, @ptrCast(header)) + @sizeOf(IndexHeader)));
return start_ptr[0..header.length()];
}
@@ -2122,7 +2122,7 @@ const IndexHeader = struct {
const nbytes = @sizeOf(IndexHeader) + index_size * len;
const bytes = try gpa.alignedAlloc(u8, .of(IndexHeader), nbytes);
@memset(bytes[@sizeOf(IndexHeader)..], 0xff);
- const result: *IndexHeader = @alignCast(@ptrCast(bytes.ptr));
+ const result: *IndexHeader = @ptrCast(@alignCast(bytes.ptr));
result.* = .{
.bit_index = new_bit_index,
};