ruby-changes:44085
From: naruse <ko1@a...>
Date: Wed, 14 Sep 2016 07:22:22 +0900 (JST)
Subject: [ruby-changes:44085] naruse:r56158 (trunk): * hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args.
naruse 2016-09-14 07:22:14 +0900 (Wed, 14 Sep 2016) New Revision: 56158 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56158 Log: * hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args. Modified files: trunk/ChangeLog trunk/hash.c Index: ChangeLog =================================================================== --- ChangeLog (revision 56157) +++ ChangeLog (revision 56158) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Sep 14 07:02:31 2016 NARUSE, Yui <naruse@r...> + + * hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args. + Tue Sep 13 21:32:54 2016 Kazuki Yamaguchi <k@r...> * string.c (STR_HEAP_SIZE, RESIZE_CAPA_TERM, str_new0, rb_str_buf_new, Index: hash.c =================================================================== --- hash.c (revision 56157) +++ hash.c (revision 56158) @@ -1750,7 +1750,8 @@ each_pair_i(VALUE key, VALUE value) https://github.com/ruby/ruby/blob/trunk/hash.c#L1750 static int each_pair_i_fast(VALUE key, VALUE value) { - rb_yield_values(2, key, value); + VALUE argv[2] = {key, value}; + rb_yield_values2(2, argv); return ST_CONTINUE; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/