From 1ac67ec41678f021482be09033ca6e179e29be91 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 29 Oct 2018 18:03:13 +0000 Subject: use `rb_hash_new_compare_by_id()`. * vm_eval.c (local_var_list_init): use `rb_hash_new_compare_by_id()` directly instead of manipulating st_table. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 09c86dc2d6..1176c494e1 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -2009,8 +2009,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(); - RHASH(vars->tbl)->ntbl = st_init_numtable(); /* compare_by_identity */ + vars->tbl = rb_hash_new_compare_by_id(); RBASIC_CLEAR_CLASS(vars->tbl); } -- cgit v1.2.3