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
|
// TODO: use @ptrCast when the compiler supports it
|
||||||
const unaligned_extra = std.mem.bytesAsSlice(u32, extra_bytes);
|
const unaligned_extra = std.mem.bytesAsSlice(u32, extra_bytes);
|
||||||
const extra_array = try arena.alloc(u32, unaligned_extra.len);
|
const extra_array = try arena.alloc(u32, unaligned_extra.len);
|
||||||
// TODO: use @memcpy when it supports slices
|
@memcpy(extra_array, unaligned_extra);
|
||||||
for (extra_array, unaligned_extra) |*dst, src| dst.* = src;
|
|
||||||
s.result_error_bundle = .{
|
s.result_error_bundle = .{
|
||||||
.string_bytes = try arena.dupe(u8, string_bytes),
|
.string_bytes = try arena.dupe(u8, string_bytes),
|
||||||
.extra = extra_array,
|
.extra = extra_array,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user