diff options
| author | Vexu <git@vexu.eu> | 2020-05-05 16:20:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 16:20:05 +0300 |
| commit | fde6d28c237fbeae2ace8f2834190c6f9752712a (patch) | |
| tree | 80b955caa15a857d061732f428298b3797774eb9 /lib/std/thread.zig | |
| parent | f127dee47424f4c87a4ed5026a2d5be5cce7a135 (diff) | |
| parent | 4cb4097b084d9f9df31d7cf36b5876ad51790828 (diff) | |
| download | zig-fde6d28c237fbeae2ace8f2834190c6f9752712a.tar.gz zig-fde6d28c237fbeae2ace8f2834190c6f9752712a.zip | |
Merge pull request #5273 from haze/hb/fix-posix-errorunion-thread-spawn-result
Update ErrorUnion thread spawn result to return null instead of 0
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 6d9b4bebe6..d07c41c5b0 100644 --- a/lib/std/thread.zig +++ b/lib/std/thread.zig @@ -280,7 +280,7 @@ pub const Thread = struct { std.debug.dumpStackTrace(trace.*); } }; - return 0; + return null; }, else => @compileError(bad_startfn_ret), } |
