From b0dd250dc95ea0fae89c3201967039d582fbf156 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 23 May 2012 07:13:21 +0000 Subject: use RB_TYPE_P() instead of comparison of TYPE() git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pty/pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pty') diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 126e33c8a6..06d4075726 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -461,7 +461,7 @@ pty_close_pty(VALUE assoc) for (i = 0; i < 2; i++) { io = rb_ary_entry(assoc, i); - if (TYPE(io) == T_FILE && 0 <= RFILE(io)->fptr->fd) + if (RB_TYPE_P(io, T_FILE) && 0 <= RFILE(io)->fptr->fd) rb_io_close(io); } return Qnil; -- cgit v1.2.3