aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-27 20:53:57 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-27 20:53:57 -0700
commitf9dfa226a56eb02f33e81aa675e1011fbcf405fe (patch)
tree1c809a5b9ee574e131d480b0e6e2cbf3495a33e3
parent0da19a25cfeb6b0707d663a6c7e84ef1b9545c01 (diff)
downloadbun-f9dfa226a56eb02f33e81aa675e1011fbcf405fe.tar.gz
bun-f9dfa226a56eb02f33e81aa675e1011fbcf405fe.tar.zst
bun-f9dfa226a56eb02f33e81aa675e1011fbcf405fe.zip
Fix bug in string eql check that was never used before
-rw-r--r--src/string_immutable.zig2
1 files changed, 1 insertions, 1 deletions
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 => {