From 95f983f6d0e5f1b2c9c26950cbfaa7cf323d3f1c Mon Sep 17 00:00:00 2001 From: glass Date: Tue, 3 Dec 2013 04:55:51 +0000 Subject: * array.c (ary_add_hash): set and return values because string keys will be frozen. [ruby-core:58809] [Bug #9202] * array.c (rb_ary_uniq_bang): ditto. * array.c (rb_ary_or): ditto. * array.c (rb_ary_uniq): ditto. * test/ruby/test_array.rb: tests for above. The patch is from normalperson (Eric Wong). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index 1a6af6e70a..8a71e2c8b7 100644 --- a/array.c +++ b/array.c @@ -3905,7 +3905,8 @@ ary_add_hash(VALUE hash, VALUE ary) long i; for (i=0; i