summaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-05 02:37:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-05 02:37:49 +0000
commitd41cd79e29bebdaf7edfc62315b585c9c4a21c56 (patch)
tree62fa3e99773ad80a1b6210b26a776af519551caa /array.c
parent9aa3ba6313b2bc7bcf664a0fe5207c58696be520 (diff)
downloadruby-d41cd79e29bebdaf7edfc62315b585c9c4a21c56.tar.gz
ruby-d41cd79e29bebdaf7edfc62315b585c9c4a21c56.tar.xz
ruby-d41cd79e29bebdaf7edfc62315b585c9c4a21c56.zip
* array.c (ary_make_hash): hide a Hash used internally.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index 13bf3b674..ddfe3c2b2 100644
--- a/array.c
+++ b/array.c
@@ -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);
}