zig

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

commit a0414012568028cd26a118c47be58940e10e2d95 (tree)
parent 3a3576da60e8e092297af48f022a0a3fe629fa6a
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Thu, 25 Nov 2021 22:20:32 +0100

libstd: fix bug in std.Thread.Futex selecting incorrect default macOS version

Diffstat:
Mlib/std/Thread/Futex.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/Thread/Futex.zig b/lib/std/Thread/Futex.zig @@ -198,7 +198,7 @@ const DarwinFutex = struct { // true so that we we know to ignore the ETIMEDOUT result. var timeout_overflowed = false; const status = blk: { - if (target.os.version_range.semver.max.major >= 11) { + if (target.os.version_range.semver.min.major >= 11) { break :blk darwin.__ulock_wait2(flags, addr, expect, timeout_ns, 0); } else { const timeout_us = std.math.cast(u32, timeout_ns / std.time.ns_per_us) catch overflow: {