Commit f7b1e02158

Andrew Kelley <andrew@ziglang.org>
2019-11-08 23:05:20
fix type cast in windows child process code
1 parent 3cf5c2c
Changed files (1)
lib/std/child_process.zig
@@ -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 };