diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-05 20:08:33 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-05 20:08:33 +0000 |
| commit | dc062b8684c1e34b417649cbe751bc3a861432d8 (patch) | |
| tree | 13a07a4ac60fa737cf76cbe9460f4de4d3352aff /io.c | |
| parent | db5f7e4362a6e42bf1d63071d7aea924d1c6be24 (diff) | |
| download | ruby-dc062b8684c1e34b417649cbe751bc3a861432d8.tar.gz ruby-dc062b8684c1e34b417649cbe751bc3a861432d8.tar.xz ruby-dc062b8684c1e34b417649cbe751bc3a861432d8.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4500,7 +4500,7 @@ io_reopen(VALUE io, VALUE nfile) rb_io_binmode(io); } - RBASIC(io)->klass = RBASIC(nfile)->klass; + RBASIC(io)->klass = rb_obj_class(nfile); return io; } |
