We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17f584b commit 42ae6cfCopy full SHA for 42ae6cf
1 file changed
src/bitap.zig
@@ -24,15 +24,15 @@ pub fn bitap(
24
const possible_values = possibleValues(ElemType);
25
26
if (pattern.len == 0) return 0;
27
- const len = @intCast(Log2Int, pattern.len);
+ const len = @as(Log2Int, @intCast(pattern.len));
28
29
const one: Int = 1;
30
31
var R: Int = ~one;
32
var pattern_mask = [_]Int{std.math.maxInt(Int)} ** possible_values;
33
34
for (pattern, 0..) |x, i| {
35
- pattern_mask[x] &= ~(one << @intCast(Log2Int, i));
+ pattern_mask[x] &= ~(one << @as(Log2Int, @intCast(i)));
36
}
37
38
for (text, 0..) |x, i| {
0 commit comments