diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-05 02:37:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-05 02:37:49 +0000 |
commit | 8b093ebc3c091edf3bf15ae7061ea3bba753f2fc (patch) | |
tree | 62fa3e99773ad80a1b6210b26a776af519551caa | |
parent | 38a6dfcbbb9edaf6c770955ccd11de88916833b0 (diff) | |
download | ruby-8b093ebc3c091edf3bf15ae7061ea3bba753f2fc.tar.gz |
* array.c (ary_make_hash): hide a Hash used internally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | array.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Feb 5 11:37:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * array.c (ary_make_hash): hide a Hash used internally. + Thu Feb 5 11:21:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (RUBY_LIB_VERSION): added for library version, to @@ -2869,6 +2869,7 @@ ary_make_hash(VALUE ary1, VALUE ary2) VALUE hash = rb_hash_new(); long i; + RBASIC(hash)->klass = 0; for (i=0; i<RARRAY_LEN(ary1); i++) { rb_hash_aset(hash, RARRAY_PTR(ary1)[i], Qtrue); } |