diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-03-12 18:05:27 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-12 18:05:27 -0700 |
| commit | 1f34c03ac14ac352ec03267ca8592dadfbd5e4bc (patch) | |
| tree | ebcb851922636b7dd2b17acb72187836c86180ec /lib/std/Thread.zig | |
| parent | 868253a9c94d9907fae81e5e3108c7d10a85f5c3 (diff) | |
| parent | 8ebb18d9da0bfbe6a974636fd36e3391d1de253b (diff) | |
| download | zig-1f34c03ac14ac352ec03267ca8592dadfbd5e4bc.tar.gz zig-1f34c03ac14ac352ec03267ca8592dadfbd5e4bc.zip | |
Merge remote-tracking branch 'origin/master' into llvm12
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index b9a69d151f..7e8a6226e6 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -362,7 +362,7 @@ pub fn spawn(comptime startFn: anytype, context: SpawnContextType(@TypeOf(startF os.EAGAIN => return error.SystemResources, os.EPERM => unreachable, os.EINVAL => unreachable, - else => return os.unexpectedErrno(@intCast(usize, err)), + else => return os.unexpectedErrno(err), } return thread_obj; |
