diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-29 18:03:13 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-29 18:03:13 +0000 |
commit | 1ac67ec41678f021482be09033ca6e179e29be91 (patch) | |
tree | 839dac7e4b05cadf48c07d606d64a05de10d2b23 /vm_eval.c | |
parent | 90a97887e208445fe86df9c07ab0d5675883b0da (diff) | |
download | ruby-1ac67ec41678f021482be09033ca6e179e29be91.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |