diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-06-16 13:45:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-16 13:45:33 -0700 |
| commit | 537104fd9d84d94abad3e36d3cd781be4397e299 (patch) | |
| tree | a77492de657f8a76c15bdeb443916490db79e1cd /lib/std/Build/Cache | |
| parent | 5d9e8f27d0dc131e0b4154c5f65376f2fb9f3500 (diff) | |
| parent | 2af5bd8aa8711b2a6e60f961290372134090f235 (diff) | |
| download | zig-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.zig | 2 |
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); |
