From 2a5354e59324cb296a423c73ec15ff9191086964 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 18 Feb 2022 12:54:42 +0100 Subject: Implement ObjectSpace::WeakKeyMap basic allocator [Feature #18498] --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 9c57a96812..b6651c9489 100644 --- a/hash.c +++ b/hash.c @@ -106,7 +106,7 @@ rb_hash_set_ifnone(VALUE hash, VALUE ifnone) return hash; } -static int +int rb_any_cmp(VALUE a, VALUE b) { if (a == b) return 0; @@ -221,7 +221,7 @@ obj_any_hash(VALUE obj) return FIX2LONG(hval); } -static st_index_t +st_index_t rb_any_hash(VALUE a) { return any_hash(a, obj_any_hash); -- cgit v1.2.1