mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix bug in string eql check that was never used before
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user