authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-08 17:05:20-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-08 17:05:20-05:00
logf7b1e02158550a8df3c189299da88568b381f5b1
treefcf1f309750159e579bdf99e2f7646c3bbd8a1a9
parent3cf5c2c62b12aa0615633a150a1ea8c279e53004

fix type cast in windows child process code


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/child_process.zig+1-1
...@@ -219,7 +219,7 @@ pub const ChildProcess = struct {...@@ -219,7 +219,7 @@ pub const ChildProcess = struct {
219 fn waitUnwrappedWindows(self: *ChildProcess) !void {219 fn waitUnwrappedWindows(self: *ChildProcess) !void {
220 const result = windows.WaitForSingleObject(self.handle, windows.INFINITE);220 const result = windows.WaitForSingleObject(self.handle, windows.INFINITE);
221221
222 self.term = (SpawnError!Term)(x: {222 self.term = @as(SpawnError!Term, x: {
223 var exit_code: windows.DWORD = undefined;223 var exit_code: windows.DWORD = undefined;
224 if (windows.kernel32.GetExitCodeProcess(self.handle, &exit_code) == 0) {224 if (windows.kernel32.GetExitCodeProcess(self.handle, &exit_code) == 0) {
225 break :x Term{ .Unknown = 0 };225 break :x Term{ .Unknown = 0 };