diff options
author | Peter Zhu <[email protected]> | 2024-02-22 18:03:14 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-02-23 10:24:21 -0500 |
commit | 386a00663092fc5eff0770dcb4b4ce5d6797dd74 () | |
tree | 518e630fae2e30c3edb094ce81e8d1a33414f5f8 | |
parent | 6bd3e8fbb2b0645f535858b3bd3bcb7242a6a438 (diff) |
Use rb_hash_foreach in objspace.c
Using RHASH_TBL_RAW is a private API, so we should use rb_hash_foreach rather than RHASH_TBL_RAW with st_foreach.
-rw-r--r-- | ext/objspace/objspace.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -169,8 +169,7 @@ setup_hash(int argc, VALUE *argv) hash = rb_hash_new(); } else if (!RHASH_EMPTY_P(hash)) { - /* WB: no new reference */ - st_foreach(RHASH_TBL_RAW(hash), set_zero_i, hash); } return hash; |