aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2022-02-18 12:54:42 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-02-23 16:01:57 +0100
commit2a5354e59324cb296a423c73ec15ff9191086964 (patch)
tree4f05a09a431ee431f1312eef8eb23da4cab7e23a /hash.c
parent9406245dbcaa324ce9ff0aae0f28b64beacc0836 (diff)
downloadruby-2a5354e59324cb296a423c73ec15ff9191086964.tar.gz
Implement ObjectSpace::WeakKeyMap basic allocator
[Feature #18498]
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
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);