diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2021-04-29 16:27:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 16:27:50 +0200 |
| commit | 687ef42f988191b6da78bfafbda0d2fe888697cc (patch) | |
| tree | 817ad223cee1b380b4da23aadc0c71662521ff66 /lib/std | |
| parent | 55c58f226d06d3708a82878a67f3800e0ce5810b (diff) | |
| download | zig-687ef42f988191b6da78bfafbda0d2fe888697cc.tar.gz zig-687ef42f988191b6da78bfafbda0d2fe888697cc.zip | |
x: comptime bool -> comptime x: bool (#8639)
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/crypto/25519/field.zig | 2 | ||||
| -rw-r--r-- | lib/std/crypto/poly1305.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/crypto/25519/field.zig b/lib/std/crypto/25519/field.zig index aae53e9081..3378191451 100644 --- a/lib/std/crypto/25519/field.zig +++ b/lib/std/crypto/25519/field.zig @@ -292,7 +292,7 @@ pub const Fe = struct { return _carry128(&r); } - fn _sq(a: Fe, double: comptime bool) callconv(.Inline) Fe { + fn _sq(a: Fe, comptime double: bool) callconv(.Inline) Fe { var ax: [5]u128 = undefined; var r: [5]u128 = undefined; comptime var i = 0; diff --git a/lib/std/crypto/poly1305.zig b/lib/std/crypto/poly1305.zig index 739c057178..375cf0a3cb 100644 --- a/lib/std/crypto/poly1305.zig +++ b/lib/std/crypto/poly1305.zig @@ -39,7 +39,7 @@ pub const Poly1305 = struct { }; } - fn blocks(st: *Poly1305, m: []const u8, last: comptime bool) void { + fn blocks(st: *Poly1305, m: []const u8, comptime last: bool) void { const hibit: u64 = if (last) 0 else 1 << 40; const r0 = st.r[0]; const r1 = st.r[1]; |
