diff --git a/src/lib.zig b/src/lib.zig index 8074bc93d9110956ca85722d982184ea2fed70f3..a49ec8b4cc493f09fcd0a19085a7933916481db0 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -392,9 +392,9 @@ pub fn BufIndexer(comptime T: type, comptime endian: std.builtin.Endian) type { const Self = @This(); - pub fn init(bytes: []const u8, max_len: usize) Self { + pub fn init(bytes: [*]const u8, max_len: usize) Self { return .{ - .bytes = bytes.ptr, + .bytes = bytes, .max_len = max_len, }; }