From eb9b8a3dcfbd15e95195951fab0505c337927f39 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 4 Feb 2025 23:29:28 +0100 Subject: [PATCH] fix: windows build with 0.14.0-dev.3039 --- src/subprocess_windows.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/subprocess_windows.zig b/src/subprocess_windows.zig index e9eaea1..3770ca8 100644 --- a/src/subprocess_windows.zig +++ b/src/subprocess_windows.zig @@ -138,10 +138,10 @@ const Proc = struct { fn receive(self: *Proc, _: tp.pid_ref, m: tp.message) tp.result { errdefer self.deinit(); - var bytes: []u8 = ""; - var stream_name: []u8 = ""; + var bytes: []const u8 = ""; + var stream_name: []const u8 = ""; var err: i64 = 0; - var err_msg: []u8 = ""; + var err_msg: []const u8 = ""; if (try m.match(.{ "stream", "stdout", "read_complete", tp.extract(&bytes) })) { try self.dispatch_stdout(bytes); if (self.stream_stdout) |stream| stream.start_read() catch |e| return self.handle_error(e); @@ -692,7 +692,7 @@ const Child = struct { } var io_status: windows.IO_STATUS_BLOCK = undefined; - const num_supported_pathext = @typeInfo(CreateProcessSupportedExtension).Enum.fields.len; + const num_supported_pathext = @typeInfo(CreateProcessSupportedExtension).@"enum".fields.len; var pathext_seen = [_]bool{false} ** num_supported_pathext; var any_pathext_seen = false; var unappended_exists = false;