mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
fix build on windows
This commit is contained in:
parent
54138d9e82
commit
dd3437d5ba
@ -213,9 +213,9 @@ pub const ChildProcess = struct {
|
||||
self.term = (%Term)({
|
||||
var exit_code: windows.DWORD = undefined;
|
||||
if (windows.GetExitCodeProcess(self.handle, &exit_code) == 0) {
|
||||
Term.Unknown{0}
|
||||
Term { .Unknown = 0 }
|
||||
} else {
|
||||
Term.Exited {@bitCast(i32, exit_code)}
|
||||
Term { .Exited = @bitCast(i32, exit_code)}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user