Merge pull request #5273 from haze/hb/fix-posix-errorunion-thread-spawn-result
Update ErrorUnion thread spawn result to return null instead of 0
This commit is contained in:
@@ -280,7 +280,7 @@ pub const Thread = struct {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
}
|
||||
};
|
||||
return 0;
|
||||
return null;
|
||||
},
|
||||
else => @compileError(bad_startfn_ret),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user