diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-27 10:04:11 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-27 10:04:11 +0000 |
commit | 9e48333190cb95ecd4d8a49eed103518457e8ace (patch) | |
tree | 0a28d6aa4707629c5d106e979c316c5b65b72e60 /io.c | |
parent | 043c693d6a7521604ced80a0619d38b4f187f1c9 (diff) |
tcltklib/gtk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1172,11 +1172,7 @@ static VALUE io_get_io(io) VALUE io; { - if (TYPE(io) != T_FILE) { - io = rb_funcall(io, rb_intern("to_io"), 0, 0); - Check_Type(io, T_FILE); - } - return io; + return rb_convert_type(io, T_FILE, "IO", "to_io"); } #ifndef NT |