ruby-changes:53218
From: ko1 <ko1@a...>
Date: Tue, 30 Oct 2018 03:03:17 +0900 (JST)
Subject: [ruby-changes:53218] ko1:r65433 (trunk): use `rb_hash_new_compare_by_id()`.
ko1 2018-10-30 03:03:13 +0900 (Tue, 30 Oct 2018) New Revision: 65433 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65433 Log: 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. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 65432) +++ vm_eval.c (revision 65433) @@ -2009,8 +2009,7 @@ rb_catch_obj(VALUE t, VALUE (*func)(), V https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L2009 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/