aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto/poly1305.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2023-06-02 22:02:45 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-16 13:44:09 -0700
commit259315606827620daaabf82b479e59ee710097cd (patch)
tree16c797e4cc15479a27e64b4414517d9334f52250 /lib/std/crypto/poly1305.zig
parent22c6b6c9a9378aaca75c83c2182a6d94298f6bc2 (diff)
downloadzig-259315606827620daaabf82b479e59ee710097cd.tar.gz
zig-259315606827620daaabf82b479e59ee710097cd.zip
migration: std.math.{min, min3, max, max3} -> `@min` & `@max`
Diffstat (limited to 'lib/std/crypto/poly1305.zig')
-rw-r--r--lib/std/crypto/poly1305.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/crypto/poly1305.zig b/lib/std/crypto/poly1305.zig
index a2873f1145..51e1c2ab24 100644
--- a/lib/std/crypto/poly1305.zig
+++ b/lib/std/crypto/poly1305.zig
@@ -112,7 +112,7 @@ pub const Poly1305 = struct {
// handle leftover
if (st.leftover > 0) {
- const want = std.math.min(block_length - st.leftover, mb.len);
+ const want = @min(block_length - st.leftover, mb.len);
const mc = mb[0..want];
for (mc, 0..) |x, i| {
st.buf[st.leftover + i] = x;