diff options
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 { |