Skip to content

Commit a041401

Browse files
committed
libstd: fix bug in std.Thread.Futex selecting incorrect default macOS version
1 parent 3a3576d commit a041401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/Thread/Futex.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const DarwinFutex = struct {
198198
// true so that we we know to ignore the ETIMEDOUT result.
199199
var timeout_overflowed = false;
200200
const status = blk: {
201-
if (target.os.version_range.semver.max.major >= 11) {
201+
if (target.os.version_range.semver.min.major >= 11) {
202202
break :blk darwin.__ulock_wait2(flags, addr, expect, timeout_ns, 0);
203203
} else {
204204
const timeout_us = std.math.cast(u32, timeout_ns / std.time.ns_per_us) catch overflow: {

0 commit comments

Comments
 (0)