mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
fix type cast in windows child process code
This commit is contained in:
parent
3cf5c2c62b
commit
f7b1e02158
@ -219,7 +219,7 @@ pub const ChildProcess = struct {
|
||||
fn waitUnwrappedWindows(self: *ChildProcess) !void {
|
||||
const result = windows.WaitForSingleObject(self.handle, windows.INFINITE);
|
||||
|
||||
self.term = (SpawnError!Term)(x: {
|
||||
self.term = @as(SpawnError!Term, x: {
|
||||
var exit_code: windows.DWORD = undefined;
|
||||
if (windows.kernel32.GetExitCodeProcess(self.handle, &exit_code) == 0) {
|
||||
break :x Term{ .Unknown = 0 };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user