Skip to content

Commit

Permalink
Update to latest zig
Browse files Browse the repository at this point in the history
zig version 0.11.0-dev.3880+910ad92e0
  • Loading branch information
joachimschmidt557 committed Jun 29, 2023
1 parent 17f584b commit 42ae6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitap.zig
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ pub fn bitap(
const possible_values = possibleValues(ElemType);

if (pattern.len == 0) return 0;
const len = @intCast(Log2Int, pattern.len);
const len = @as(Log2Int, @intCast(pattern.len));

const one: Int = 1;

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

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

for (text, 0..) |x, i| {
Expand Down

0 comments on commit 42ae6cf

Please sign in to comment.