| ... | @@ -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) { |