| ... | ... | @@ -92,7 +92,7 @@ pub fn hashString(s: []const u8) u64 { |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | pub const StringIndexContext = struct { |
| 95 | | bytes: *std.ArrayListUnmanaged(u8), |
| 95 | bytes: *const std.ArrayListUnmanaged(u8), |
| 96 | 96 | |
| 97 | 97 | pub fn eql(self: @This(), a: u32, b: u32) bool { |
| 98 | 98 | _ = self; |
| ... | ... | @@ -106,7 +106,7 @@ pub const StringIndexContext = struct { |
| 106 | 106 | }; |
| 107 | 107 | |
| 108 | 108 | pub const StringIndexAdapter = struct { |
| 109 | | bytes: *std.ArrayListUnmanaged(u8), |
| 109 | bytes: *const std.ArrayListUnmanaged(u8), |
| 110 | 110 | |
| 111 | 111 | pub fn eql(self: @This(), a_slice: []const u8, b: u32) bool { |
| 112 | 112 | const b_slice = mem.sliceTo(@as([*:0]const u8, @ptrCast(self.bytes.items.ptr)) + b, 0); |