summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/io/console/console.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index d7f3485b49..85e6a0613e 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -1538,10 +1538,8 @@ console_clear_screen(VALUE io)
static VALUE
io_open_descriptor_fallback(VALUE klass, int descriptor, int mode, VALUE path, VALUE timeout, void *encoding)
{
- rb_update_max_fd(descriptor);
-
VALUE arguments[2] = {
- INT2NUM(descriptor),
+ (rb_update_max_fd(descriptor), INT2NUM(descriptor)),
INT2FIX(mode),
};