diff options
author | Jean Boussier <[email protected]> | 2022-02-18 12:54:42 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2023-02-23 16:01:57 +0100 |
commit | 2a5354e59324cb296a423c73ec15ff9191086964 (patch) | |
tree | 4f05a09a431ee431f1312eef8eb23da4cab7e23a /hash.c | |
parent | 9406245dbcaa324ce9ff0aae0f28b64beacc0836 (diff) |
Implement ObjectSpace::WeakKeyMap basic allocator
[Feature #18498]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5570
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |