summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-29 18:03:13 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-29 18:03:13 +0000
commit1ac67ec41678f021482be09033ca6e179e29be91 (patch)
tree839dac7e4b05cadf48c07d606d64a05de10d2b23 /vm_eval.c
parent90a97887e208445fe86df9c07ab0d5675883b0da (diff)
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
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 09c86dc..1176c49 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);
}