ruby-changes:44098
From: ngoto <ko1@a...>
Date: Fri, 16 Sep 2016 21:20:40 +0900 (JST)
Subject: [ruby-changes:44098] ngoto:r56171 (trunk): * hash.c (each_pair_i_fast): Fix compile error with old version of
ngoto 2016-09-16 21:20:35 +0900 (Fri, 16 Sep 2016) New Revision: 56171 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56171 Log: * hash.c (each_pair_i_fast): Fix compile error with old version of fcc on Solaris 10. [Bug #12768] [ruby-dev:49808] Modified files: trunk/ChangeLog trunk/hash.c Index: ChangeLog =================================================================== --- ChangeLog (revision 56170) +++ ChangeLog (revision 56171) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Sep 16 21:19:51 2016 Naohisa Goto <ngotogenome@g...> + + * 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@r...> * win32/Makefile.sub (config.h): fixed compile error with VC introduced Index: hash.c =================================================================== --- hash.c (revision 56170) +++ hash.c (revision 56171) @@ -1750,7 +1750,9 @@ 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) { - VALUE argv[2] = {key, value}; + VALUE argv[2]; + argv[0] = key; + argv[1] = value; rb_yield_values2(2, argv); return ST_CONTINUE; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/