| ... | @@ -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); |
| 221 | | 221 | |
| 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 }; |