diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-11-10 05:27:17 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-11-19 09:55:07 +0000 |
| commit | 51595d6b75d8ac2443a2c142c71f2a617c12fe96 (patch) | |
| tree | 0e3045793aa36cc8569181cc790d270c4f056806 /lib/std/crypto/poly1305.zig | |
| parent | baabc6013ea4f44082e69375214e76b5d803c5cb (diff) | |
| download | zig-51595d6b75d8ac2443a2c142c71f2a617c12fe96.tar.gz zig-51595d6b75d8ac2443a2c142c71f2a617c12fe96.zip | |
lib: correct unnecessary uses of 'var'
Diffstat (limited to 'lib/std/crypto/poly1305.zig')
| -rw-r--r-- | lib/std/crypto/poly1305.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/crypto/poly1305.zig b/lib/std/crypto/poly1305.zig index 67e1b630c1..d9fd344c19 100644 --- a/lib/std/crypto/poly1305.zig +++ b/lib/std/crypto/poly1305.zig @@ -90,8 +90,8 @@ pub const Poly1305 = struct { h2 = t2 & 3; // Add c*(4+1) - var cclo = t2 & ~@as(u64, 3); - var cchi = t3; + const cclo = t2 & ~@as(u64, 3); + const cchi = t3; v = @addWithOverflow(h0, cclo); h0 = v[0]; v = add(h1, cchi, v[1]); @@ -163,7 +163,7 @@ pub const Poly1305 = struct { var h0 = st.h[0]; var h1 = st.h[1]; - var h2 = st.h[2]; + const h2 = st.h[2]; // H - (2^130 - 5) var v = @subWithOverflow(h0, 0xfffffffffffffffb); |
