authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-05-05 16:20:05+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-05-05 16:20:05+03:00
logfde6d28c237fbeae2ace8f2834190c6f9752712a
tree80b955caa15a857d061732f428298b3797774eb9
parentf127dee47424f4c87a4ed5026a2d5be5cce7a135
parent4cb4097b084d9f9df31d7cf36b5876ad51790828
signature Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #5273 from haze/hb/fix-posix-errorunion-thread-spawn-result

Update ErrorUnion thread spawn result to return null instead of 0

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/thread.zig+1-1
......@@ -280,7 +280,7 @@ pub const Thread = struct {
280280 std.debug.dumpStackTrace(trace.*);
281281 }
282282 };
283 return 0;
283 return null;
284284 },
285285 else => @compileError(bad_startfn_ret),
286286 }