mirror of
https://github.com/ziglang/zig.git
synced 2025-12-23 22:53:06 +00:00
std: remove redundant comptime const
This commit is contained in:
parent
d3ffacb55c
commit
c90e52b74c
@ -50,7 +50,7 @@ pub fn timingSafeCompare(comptime T: type, a: []const T, b: []const T, endian: E
|
||||
.Int => |cinfo| if (cinfo.signedness != .unsigned) @compileError("Elements to be compared must be unsigned") else cinfo.bits,
|
||||
else => @compileError("Elements to be compared must be integers"),
|
||||
};
|
||||
comptime const Cext = std.meta.Int(.unsigned, bits + 1);
|
||||
const Cext = std.meta.Int(.unsigned, bits + 1);
|
||||
var gt: T = 0;
|
||||
var eq: T = 1;
|
||||
if (endian == .Little) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user