ruby-changes:71052
From: Samuel <ko1@a...>
Date: Mon, 31 Jan 2022 15:36:18 +0900 (JST)
Subject: [ruby-changes:71052] aa3b2c81c8 (ruby_3_1): Fix console.c usage of `rb_io_wait`.
https://git.ruby-lang.org/ruby.git/commit/?id=aa3b2c81c8 From aa3b2c81c8de2e70bd100e92436f15c03523eaf7 Mon Sep 17 00:00:00 2001 From: Samuel Williams <samuel.williams@o...> Date: Mon, 27 Dec 2021 17:05:42 +1300 Subject: Fix console.c usage of `rb_io_wait`. --- ext/io/console/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 4c5f89f80df..dd84c51aa4a 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -555,7 +555,7 @@ console_getch(int argc, VALUE *argv, VALUE io) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L555 if (w < 0) rb_eof_error(); if (!(w & RB_WAITFD_IN)) return Qnil; # else - VALUE result = rb_io_wait(io, RUBY_IO_READABLE, timeout); + VALUE result = rb_io_wait(io, RB_INT2NUM(RUBY_IO_READABLE), timeout); if (!RTEST(result)) return Qnil; # endif } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/