Skip to content

Commit

Permalink
Fix func sig comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Jul 28, 2024
1 parent 56aa407 commit 884668a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sema.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6957,7 +6957,7 @@ pub const FuncSigKeyContext = struct {
return c.final();
}
pub fn eql(_: @This(), a: FuncSigKey, b: FuncSigKey) bool {
return std.mem.eql(u32, @ptrCast(a.params_ptr[0..a.params_len]), @ptrCast(b.params_ptr[0..b.params_len]));
return std.mem.eql(u32, @ptrCast(a.params_ptr[0..a.params_len]), @ptrCast(b.params_ptr[0..b.params_len])) and a.ret == b.ret;
}
};

Expand Down

0 comments on commit 884668a

Please sign in to comment.