From dd3437d5ba30c2101719fa38a95914fae5d965dd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 4 Dec 2017 02:08:26 -0500 Subject: [PATCH] fix build on windows --- std/os/child_process.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/os/child_process.zig b/std/os/child_process.zig index 3a4c9410c5..0548592f56 100644 --- a/std/os/child_process.zig +++ b/std/os/child_process.zig @@ -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)} } });