zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit fde6d28c237fbeae2ace8f2834190c6f9752712a (tree)
parent f127dee47424f4c87a4ed5026a2d5be5cce7a135
Author: Vexu <git@vexu.eu>
Date:   Tue,  5 May 2020 16:20:05 +0300

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:
Mlib/std/thread.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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), }