diff --git a/ChangeLog b/ChangeLog index 601d1ffb32..5674772bee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 16 21:19:51 2016 Naohisa Goto + + * 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 * win32/Makefile.sub (config.h): fixed compile error with VC introduced diff --git a/hash.c b/hash.c index 401b7e4ab1..1bc93ea92c 100644 --- a/hash.c +++ b/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; }