| ... | @@ -870,7 +870,7 @@ fn indexOfPosLinear(comptime T: type, haystack: []const T, start_index: usize, n | ... | @@ -870,7 +870,7 @@ fn indexOfPosLinear(comptime T: type, haystack: []const T, start_index: usize, n |
| 870 | return null; | 870 | return null; |
| 871 | } | 871 | } |
| 872 | | 872 | |
| 873 | fn boyerMooreHorspoolPreprocessReverse(pattern: []const u8, table: []usize) void { | 873 | fn boyerMooreHorspoolPreprocessReverse(pattern: []const u8, table: *[256]usize) void { |
| 874 | for (table) |*c| { | 874 | for (table) |*c| { |
| 875 | c.* = pattern.len; | 875 | c.* = pattern.len; |
| 876 | } | 876 | } |
| ... | @@ -881,7 +881,7 @@ fn boyerMooreHorspoolPreprocessReverse(pattern: []const u8, table: []usize) void | ... | @@ -881,7 +881,7 @@ fn boyerMooreHorspoolPreprocessReverse(pattern: []const u8, table: []usize) void |
| 881 | } | 881 | } |
| 882 | } | 882 | } |
| 883 | | 883 | |
| 884 | fn boyerMooreHorspoolPreprocess(pattern: []const u8, table: []usize) void { | 884 | fn boyerMooreHorspoolPreprocess(pattern: []const u8, table: *[256]usize) void { |
| 885 | for (table) |*c| { | 885 | for (table) |*c| { |
| 886 | c.* = pattern.len; | 886 | c.* = pattern.len; |
| 887 | } | 887 | } |