Skip to content

Commit 504292b

Browse files
committed
Fix mixing declarations and code for older versions
1 parent cad8169 commit 504292b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/io/console/console.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,10 +1538,8 @@ console_clear_screen(VALUE io)
15381538
static VALUE
15391539
io_open_descriptor_fallback(VALUE klass, int descriptor, int mode, VALUE path, VALUE timeout, void *encoding)
15401540
{
1541-
rb_update_max_fd(descriptor);
1542-
15431541
VALUE arguments[2] = {
1544-
INT2NUM(descriptor),
1542+
(rb_update_max_fd(descriptor), INT2NUM(descriptor)),
15451543
INT2FIX(mode),
15461544
};
15471545

0 commit comments

Comments
 (0)