10000 Update to latest zig · ziglibs/string-searching@42ae6cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 42ae6cf

Browse files
Update to latest zig
zig version 0.11.0-dev.3880+910ad92e0
1 parent 17f584b commit 42ae6cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bitap.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ pub fn bitap(
2424
const possible_values = possibleValues(ElemType);
2525

2626
if (pattern.len == 0) return 0;
27-
const len = @intCast(Log2Int, pattern.len);
27+
const len = @as(Log2Int, @intCast(pattern.len));
2828

2929
const one: Int = 1;
3030

3131
var R: Int = ~one;
3232
var pattern_mask = [_]Int{std.math.maxInt(Int)} ** possible_values;
3333

3434
for (pattern, 0..) |x, i| {
35-
pattern_mask[x] &= ~(one << @intCast(Log2Int, i));
35+
pattern_mask[x] &= ~(one << @as(Log2Int, @intCast(i)));
3636
}
3737

3838
for (text, 0..) |x, i| {

0 commit comments

Comments
 (0)
0