diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-05 20:10:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-05 20:10:16 +0000 |
commit | d4c32f93e24b90c107f8ecf93739f20d412ea891 (patch) | |
tree | 3980a01cf890696e3df16e27f97bfb7dfc630957 /io.c | |
parent | 530ad54d8b96dd3aea9f146fae77d18ce2530c04 (diff) |
* file.c (rb_find_file): reset to real class.
* io.c (io_reopen): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3724,7 +3724,7 @@ io_reopen(io, nfile) rb_io_binmode(io); } - RBASIC(io)->klass = RBASIC(nfile)->klass; + RBASIC(io)->klass = rb_obj_class(nfile); return io; } |