std.process.Args: fix Windows toSlice return type

Signed-off-by: Pablo Alessandro Santos Hugen <phugen@redhat.com>
This commit is contained in:
Pablo Alessandro Santos Hugen 2026-01-23 11:09:15 -03:00 committed by Alex Rønne Petersen
parent b6714fe204
commit 78cbcd21f1

View file

@ -503,7 +503,7 @@ pub fn toSlice(a: Args, arena: Allocator) ToSliceError![][:0]const u8 {
contents_index = new_index + 1;
}
return result_slice_list;
return @ptrCast(result_slice_list);
} else if (native_os == .wasi and !builtin.link_libc) {
var count: usize = undefined;
var buf_size: usize = undefined;