ruby-changes:58552
From: Nobuyoshi <ko1@a...>
Date: Mon, 4 Nov 2019 09:18:27 +0900 (JST)
Subject: [ruby-changes:58552] df62d6522a (master): Use the dedicated function `rb_io_check_io`
https://git.ruby-lang.org/ruby.git/commit/?id=df62d6522a From df62d6522a6f679642e9b10dbf1edb1d9b646e91 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 4 Nov 2019 09:14:18 +0900 Subject: Use the dedicated function `rb_io_check_io` diff --git a/process.c b/process.c index 652fdaf..6fa3270 100644 --- a/process.c +++ b/process.c @@ -1840,7 +1840,7 @@ check_exec_redirect_fd(VALUE v, int iskey) https://github.com/ruby/ruby/blob/trunk/process.c#L1840 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/