diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-04 09:14:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-04 09:14:18 +0900 |
commit | df62d6522a6f679642e9b10dbf1edb1d9b646e91 (patch) | |
tree | df8ac9d0909efd126dabf17c020aea4950e56f28 /process.c | |
parent | 5a7487bdcd96ac7c66e773f1458691ff8fc41265 (diff) |
Use the dedicated function `rb_io_check_io`
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1840,7 +1840,7 @@ check_exec_redirect_fd(VALUE v, int iskey) else goto wrong; } - else if (!NIL_P(tmp = rb_check_convert_type_with_id(v, T_FILE, "IO", idTo_io))) { + else if (!NIL_P(tmp = rb_io_check_io(v))) { rb_io_t *fptr; GetOpenFile(tmp, fptr); if (fptr->tied_io_for_writing) |