* hash.c (each_pair_i_fast): Fix compile error with old version of

fcc on Solaris 10. [Bug #12768] [ruby-dev:49808]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ngoto 2016-09-16 12:20:35 +00:00
Родитель a334693422
Коммит c1dbcf9b7e
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Fri Sep 16 21:19:51 2016 Naohisa Goto <ngotogenome@gmail.com>
* hash.c (each_pair_i_fast): Fix compile error with old version of
fcc on Solaris 10. [Bug #12768] [ruby-dev:49808]
Fri Sep 16 19:46:05 2016 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/Makefile.sub (config.h): fixed compile error with VC introduced

4
hash.c
Просмотреть файл

@ -1750,7 +1750,9 @@ each_pair_i(VALUE key, VALUE value)
static int
each_pair_i_fast(VALUE key, VALUE value)
{
VALUE argv[2] = {key, value};
VALUE argv[2];
argv[0] = key;
argv[1] = value;
rb_yield_values2(2, argv);
return ST_CONTINUE;
}