aboutsummaryrefslogtreecommitdiff
path: root/lib/std/process.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-04-11 17:55:25 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-04-13 02:20:32 -0400
commitf32a5d349d2c359a2a1f627aa70e1a7a6f6330ea (patch)
tree05a0fe7de04e6aa91775e954f78dd1a478d7e675 /lib/std/process.zig
parentec2888858102035f296c01df5aacbd255c35d06f (diff)
downloadzig-f32a5d349d2c359a2a1f627aa70e1a7a6f6330ea.tar.gz
zig-f32a5d349d2c359a2a1f627aa70e1a7a6f6330ea.zip
std: eradicate u29 and embrace std.mem.Alignment
Diffstat (limited to 'lib/std/process.zig')
-rw-r--r--lib/std/process.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig
index c146e95036..7751b88b14 100644
--- a/lib/std/process.zig
+++ b/lib/std/process.zig
@@ -1256,7 +1256,7 @@ pub fn argsAlloc(allocator: Allocator) ![][:0]u8 {
const slice_sizes = slice_list.items;
const slice_list_bytes = try math.mul(usize, @sizeOf([]u8), slice_sizes.len);
const total_bytes = try math.add(usize, slice_list_bytes, contents_slice.len);
- const buf = try allocator.alignedAlloc(u8, @alignOf([]u8), total_bytes);
+ const buf = try allocator.alignedAlloc(u8, .of([]u8), total_bytes);
errdefer allocator.free(buf);
const result_slice_list = mem.bytesAsSlice([:0]u8, buf[0..slice_list_bytes]);