summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2022-02-01 21:53:43 +0900
committerNARUSE, Yui <naruse@airemix.jp>2022-02-01 21:53:43 +0900
commit8177e3b8d323c3e5d897a8c8239be5f1e9f8f11d (patch)
tree16c63b406f7872042d7c7461f581c27441837ac9
parent1f17463dec2ab1535096cb56005a840eae4fea5b (diff)
Revert "Fix console.c usage of `rb_io_wait`."
This reverts commit aa3b2c81c8de2e70bd100e92436f15c03523eaf7.
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index dd84c51aa4..4c5f89f80d 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)
if (w < 0) rb_eof_error();
if (!(w & RB_WAITFD_IN)) return Qnil;
# else
- VALUE result = rb_io_wait(io, RB_INT2NUM(RUBY_IO_READABLE), timeout);
+ VALUE result = rb_io_wait(io, RUBY_IO_READABLE, timeout);
if (!RTEST(result)) return Qnil;
# endif
}