authorgravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2023-11-26 04:41:24-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-11-26 14:27:39-05:00
log069a079ddc2ae07cfe1998a364402624f07ce960
tree8a96498d057f8156c4ce26e49f943b3f4137f2c1
parent2549de80b226cddd0664ce4ad8c40887101f302b

complete todo


1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/Build/Step.zig+1-2
......@@ -371,8 +371,7 @@ pub fn evalZigProcess(
371371 // TODO: use @ptrCast when the compiler supports it
372372 const unaligned_extra = std.mem.bytesAsSlice(u32, extra_bytes);
373373 const extra_array = try arena.alloc(u32, unaligned_extra.len);
374 // TODO: use @memcpy when it supports slices
375 for (extra_array, unaligned_extra) |*dst, src| dst.* = src;
374 @memcpy(extra_array, unaligned_extra);
376375 s.result_error_bundle = .{
377376 .string_bytes = try arena.dupe(u8, string_bytes),
378377 .extra = extra_array,