summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-28 05:09:58 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-28 05:09:58 +0000
commit2d46695c7ca7d35b5ab79a2ec92ca985673a57e2 (patch)
tree048da7d3ec82a2cdb831174783da3d297ef89093 /compile.c
parentef929bc67b5c46c85ae9451145420a4b408c90cf (diff)
use a rb_ function instead of st_ directly.
* compile.c (ibf_dump_object_hash): use `rb_hash_foreach()` instead of using `st_foreach()`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 3d3e16e638..87dc0a430f 100644
--- a/compile.c
+++ b/compile.c
@@ -9422,7 +9422,7 @@ ibf_dump_object_hash(struct ibf_dump *dump, VALUE obj)
{
long len = RHASH_SIZE(obj);
(void)IBF_W(&len, long, 1);
- if (len > 0) st_foreach(RHASH(obj)->ntbl, ibf_dump_object_hash_i, (st_data_t)dump);
+ if (len > 0) rb_hash_foreach(obj, ibf_dump_object_hash_i, (st_data_t)dump);
}
static VALUE