summaryrefslogtreecommitdiff
path: root/vm_eval.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 /vm_eval.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 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index be645ec818..068944d0b5 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -2028,7 +2028,7 @@ rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data)
static void
local_var_list_init(struct local_var_list *vars)
{
- vars->tbl = rb_hash_new_compare_by_id();
+ vars->tbl = rb_ident_hash_new();
RBASIC_CLEAR_CLASS(vars->tbl);
}