* hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
00fcd967d9
commit
d51aea54d8
@ -1,3 +1,7 @@
|
|||||||
|
Wed Sep 14 07:02:31 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args.
|
||||||
|
|
||||||
Tue Sep 13 21:32:54 2016 Kazuki Yamaguchi <k@rhe.jp>
|
Tue Sep 13 21:32:54 2016 Kazuki Yamaguchi <k@rhe.jp>
|
||||||
|
|
||||||
* string.c (STR_HEAP_SIZE, RESIZE_CAPA_TERM, str_new0, rb_str_buf_new,
|
* string.c (STR_HEAP_SIZE, RESIZE_CAPA_TERM, str_new0, rb_str_buf_new,
|
||||||
|
3
hash.c
3
hash.c
@ -1750,7 +1750,8 @@ each_pair_i(VALUE key, VALUE value)
|
|||||||
static int
|
static int
|
||||||
each_pair_i_fast(VALUE key, VALUE value)
|
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;
|
return ST_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user