From 0b826a5197f86a42b6a35dc2c35b4356435e89fd Mon Sep 17 00:00:00 2001 From: ngoto Date: Fri, 16 Sep 2016 12:20:35 +0000 Subject: * 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 --- hash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hash.c') 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; } -- cgit v1.2.3