Skip to content

Commit cad8169

Browse files
committed
Support older rubies
1 parent 9273a51 commit cad8169

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/io/console/console.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,14 +1598,14 @@ console_dev_remove(VALUE klass)
15981598

15991599
static ID id_console;
16001600

1601-
static bool
1601+
static int
16021602
console_dev_get(VALUE klass, VALUE *dev)
16031603
{
16041604
if (rb_const_defined(klass, id_console)) {
16051605
*dev = rb_const_get(klass, id_console);
1606-
return true;
1606+
return 1;
16071607
}
1608-
return false;
1608+
return 0;
16091609
}
16101610

16111611
static void

0 commit comments

Comments
 (0)