diff options
author | 2021-05-29 13:33:48 -0700 | |
---|---|---|
committer | 2021-05-29 13:33:48 -0700 | |
commit | 3436ee9deddf21594a0b4fb3640a7596ea078093 (patch) | |
tree | c053cad5df831b5c376f404879c28e6e69d6cc7e /src/ast | |
parent | 923e2c5c5d43adce832c8eb4999a8070dbd8cced (diff) | |
download | bun-3436ee9deddf21594a0b4fb3640a7596ea078093.tar.gz bun-3436ee9deddf21594a0b4fb3640a7596ea078093.tar.zst bun-3436ee9deddf21594a0b4fb3640a7596ea078093.zip |
microp
Former-commit-id: b876a8d4800779c6728a61ec51cd168d7307bc9d
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/base.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig index 3f10beb37..361339f7f 100644 --- a/src/ast/base.zig +++ b/src/ast/base.zig @@ -57,7 +57,7 @@ pub const Ref = packed struct { } pub fn eql(ref: Ref, b: Ref) bool { - return ref.inner_index == b.inner_index and ref.source_index == b.source_index; + return std.mem.readIntNative(u64, std.mem.asBytes(&ref)) == std.mem.readIntNative(u64, std.mem.asBytes(&b)); } pub fn jsonStringify(self: *const Ref, options: anytype, writer: anytype) !void { |