authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-28 15:15:44-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-28 15:15:44-07:00
logc90e52b74cd8f1fda78d786d38f2b8154374ce1c
tree9672851a903e57496e70d3e44e25e1c239f04b87
parentd3ffacb55caf18442422d7b28e1b5f16143f63ed

std: remove redundant `comptime const`


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/crypto/utils.zig+1-1
...@@ -50,7 +50,7 @@ pub fn timingSafeCompare(comptime T: type, a: []const T, b: []const T, endian: E...@@ -50,7 +50,7 @@ pub fn timingSafeCompare(comptime T: type, a: []const T, b: []const T, endian: E
50 .Int => |cinfo| if (cinfo.signedness != .unsigned) @compileError("Elements to be compared must be unsigned") else cinfo.bits,50 .Int => |cinfo| if (cinfo.signedness != .unsigned) @compileError("Elements to be compared must be unsigned") else cinfo.bits,
51 else => @compileError("Elements to be compared must be integers"),51 else => @compileError("Elements to be compared must be integers"),
52 };52 };
53 comptime const Cext = std.meta.Int(.unsigned, bits + 1);53 const Cext = std.meta.Int(.unsigned, bits + 1);
54 var gt: T = 0;54 var gt: T = 0;
55 var eq: T = 1;55 var eq: T = 1;
56 if (endian == .Little) {56 if (endian == .Little) {