summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-03 02:09:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-03 02:09:01 +0900
commitbdddaa9f56702e1d3a58a14607e9881052424b53 (patch)
treeccbb221801b714a90148cf8454ff69b7e4f27d0d /variable.c
parent0f283054e7f568f09fbfc952d57ea6daf4abbd88 (diff)
Use rb_ident_hash_new instead of rb_hash_new_compare_by_id
The latter is same as the former, removed the duplicate function.
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 476701d060..7d6905f390 100644
--- a/variable.c
+++ b/variable.c
@@ -2020,7 +2020,7 @@ rb_autoload_str(VALUE mod, ID id, VALUE file)
}
file = rb_fstring(file);
if (!autoload_featuremap) {
- autoload_featuremap = rb_hash_new_compare_by_id();
+ autoload_featuremap = rb_ident_hash_new();
rb_obj_hide(autoload_featuremap);
rb_gc_register_mark_object(autoload_featuremap);
}