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
This commit is contained in:
parent
90a97887e2
commit
1ac67ec416
@ -2009,8 +2009,7 @@ rb_catch_obj(VALUE t, VALUE (*func)(), VALUE data)
|
|||||||
static void
|
static void
|
||||||
local_var_list_init(struct local_var_list *vars)
|
local_var_list_init(struct local_var_list *vars)
|
||||||
{
|
{
|
||||||
vars->tbl = rb_hash_new();
|
vars->tbl = rb_hash_new_compare_by_id();
|
||||||
RHASH(vars->tbl)->ntbl = st_init_numtable(); /* compare_by_identity */
|
|
||||||
RBASIC_CLEAR_CLASS(vars->tbl);
|
RBASIC_CLEAR_CLASS(vars->tbl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user