summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-27 10:04:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-27 10:04:11 +0000
commit9e48333190cb95ecd4d8a49eed103518457e8ace (patch)
tree0a28d6aa4707629c5d106e979c316c5b65b72e60 /io.c
parent043c693d6a7521604ced80a0619d38b4f187f1c9 (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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/io.c b/io.c
index 4350a9acab..b2acba401a 100644
--- a/io.c
+++ b/io.c
@@ -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