aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Cache
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-06-16 13:45:33 -0700
committerGitHub <noreply@github.com>2023-06-16 13:45:33 -0700
commit537104fd9d84d94abad3e36d3cd781be4397e299 (patch)
treea77492de657f8a76c15bdeb443916490db79e1cd /lib/std/Build/Cache
parent5d9e8f27d0dc131e0b4154c5f65376f2fb9f3500 (diff)
parent2af5bd8aa8711b2a6e60f961290372134090f235 (diff)
downloadzig-537104fd9d84d94abad3e36d3cd781be4397e299.tar.gz
zig-537104fd9d84d94abad3e36d3cd781be4397e299.zip
Merge pull request #16025 from mlugg/feat/remove-std-math-minmax
Consider bounds when refining @min/@max result type; deprecate std.math.{min,max,min3,max3}
Diffstat (limited to 'lib/std/Build/Cache')
-rw-r--r--lib/std/Build/Cache/DepTokenizer.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build/Cache/DepTokenizer.zig b/lib/std/Build/Cache/DepTokenizer.zig
index 1a4e2ddb74..0e5224edc0 100644
--- a/lib/std/Build/Cache/DepTokenizer.zig
+++ b/lib/std/Build/Cache/DepTokenizer.zig
@@ -983,7 +983,7 @@ fn hexDump(out: anytype, bytes: []const u8) !void {
try printDecValue(out, offset, 8);
try out.writeAll(":");
try out.writeAll(" ");
- var end1 = std.math.min(offset + n, offset + 8);
+ var end1 = @min(offset + n, offset + 8);
for (bytes[offset..end1]) |b| {
try out.writeAll(" ");
try printHexValue(out, b, 2);