From 8a83a1e4a95990fbadaaf91bebeb972d665db6b7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 25 Jun 2023 11:17:51 -0700 Subject: [PATCH] fix min usage in src/os --- src/os/file.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/file.zig b/src/os/file.zig index cdbcd5ced..ae4f5907d 100644 --- a/src/os/file.zig +++ b/src/os/file.zig @@ -20,7 +20,7 @@ pub fn fixMaxFiles() void { // setrlimit() now returns with errno set to EINVAL in places that historically succeeded. // It no longer accepts "rlim_cur = RLIM.INFINITY" for RLIM.NOFILE. // Use "rlim_cur = min(OPEN_MAX, rlim_max)". - lim.max = std.math.min(std.os.darwin.OPEN_MAX, lim.max); + lim.max = @min(std.os.darwin.OPEN_MAX, lim.max); } // If we're already at the max, we're done.