diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-13 22:22:14 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-13 22:22:14 +0000 |
commit | d51aea54d8cba41e4c79f7f35034e85a14faf415 (patch) | |
tree | ce17f9c0128fed7261771b868fa521f1b89f9a3c | |
parent | 00fcd967d9900713fa7f617d9a5077ec178e073f (diff) | |
download | ruby-d51aea54d8cba41e4c79f7f35034e85a14faf415.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | hash.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -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> * string.c (STR_HEAP_SIZE, RESIZE_CAPA_TERM, str_new0, rb_str_buf_new, @@ -1750,7 +1750,8 @@ each_pair_i(VALUE key, VALUE value) 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; } |