From 884668a1c04b0f2945c6b1fcff7f5df0dc136de7 Mon Sep 17 00:00:00 2001 From: fubark Date: Sun, 28 Jul 2024 16:05:48 -0400 Subject: [PATCH] Fix func sig comparison. --- src/sema.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sema.zig b/src/sema.zig index 86d9c0fb0..40dffdc17 100644 --- a/src/sema.zig +++ b/src/sema.zig @@ -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; } };