From f9dfa226a56eb02f33e81aa675e1011fbcf405fe Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 27 Sep 2021 20:53:57 -0700 Subject: Fix bug in string eql check that was never used before --- src/string_immutable.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/string_immutable.zig b/src/string_immutable.zig index c9437b757..bbdea59cf 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -385,7 +385,7 @@ inline fn eqlComptimeCheckLen(self: string, comptime alt: anytype, comptime chec }, 16 => { const first = comptime std.mem.readIntNative(u64, alt[0..8]); - const second = comptime std.mem.readIntNative(u64, alt[8..15]); + const second = comptime std.mem.readIntNative(u64, alt[8..16]); return ((comptime !check_len) or self.len == alt.len) and first == std.mem.readIntNative(u64, self[0..8]) and second == std.mem.readIntNative(u64, self[8..16]); }, 23 => { -- cgit v1.2.3