mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
complete todo
This commit is contained in:
parent
2549de80b2
commit
069a079ddc
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user