From 2d46695c7ca7d35b5ab79a2ec92ca985673a57e2 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 28 Oct 2018 05:09:58 +0000 Subject: 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 --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') 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 -- cgit v1.2.3