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
This commit is contained in:
parent
ef929bc67b
commit
2d46695c7c
@ -9422,7 +9422,7 @@ ibf_dump_object_hash(struct ibf_dump *dump, VALUE obj)
|
|||||||
{
|
{
|
||||||
long len = RHASH_SIZE(obj);
|
long len = RHASH_SIZE(obj);
|
||||||
(void)IBF_W(&len, long, 1);
|
(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
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user