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