summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-05 20:08:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-05 20:08:33 +0000
commitf1ff09fbf62a1db3991efef5c1d0e53feffdfb6b (patch)
tree13a07a4ac60fa737cf76cbe9460f4de4d3352aff /array.c
parent0031e09170af64ff0d6ad34cc7cfefbeb6df74f2 (diff)
* array.c (rb_ary_sort_bang): reset to real class.
* file.c (rb_find_file_ext, rb_find_file): ditto. * io.c (io_reopen): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index d8d09f8e96..1d2202b815 100644
--- a/array.c
+++ b/array.c
@@ -1562,7 +1562,7 @@ rb_ary_sort_bang(VALUE ary)
RARRAY(tmp)->ptr = 0;
RARRAY(tmp)->len = 0;
RARRAY(tmp)->aux.capa = 0;
- RBASIC(tmp)->klass = RBASIC(ary)->klass;
+ RBASIC(tmp)->klass = rb_cArray;
}
return ary;
}