complete todo

This commit is contained in:
David Rubin 2023-11-26 04:41:24 -08:00 committed by Andrew Kelley
parent 2549de80b2
commit 069a079ddc

View File

@ -371,8 +371,7 @@ pub fn evalZigProcess(
// TODO: use @ptrCast when the compiler supports it
const unaligned_extra = std.mem.bytesAsSlice(u32, extra_bytes);
const extra_array = try arena.alloc(u32, unaligned_extra.len);
// TODO: use @memcpy when it supports slices
for (extra_array, unaligned_extra) |*dst, src| dst.* = src;
@memcpy(extra_array, unaligned_extra);
s.result_error_bundle = .{
.string_bytes = try arena.dupe(u8, string_bytes),
.extra = extra_array,