We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967eb04 commit 8542499Copy full SHA for 8542499
1 file changed
src/bitap.zig
@@ -19,18 +19,8 @@ pub fn bitap(
19
assert(@typeInfo(ElemType) == .Int);
20
assert(pattern.len <= max_pattern_length);
21
22
- const Int = @Type(std.builtin.TypeInfo{
23
- .Int = .{
24
- .is_signed = false,
25
- .bits = max_pattern_length + 1,
26
- },
27
- });
28
- const Log2Int = @Type(std.builtin.TypeInfo{
29
30
31
- .bits = std.math.log2(max_pattern_length + 1),
32
33
+ const Int = std.meta.Int(false, max_pattern_length + 1);
+ const Log2Int = std.meta.Int(false, std.math.log2(max_pattern_length + 1));
34
const possible_values = possibleValues(ElemType);
35
36
if (pattern.len == 0) return 0;
0 commit comments