Skip to content

Conversation

nobu
Copy link
Member

@nobu nobu commented Oct 10, 2020

No description provided.

nobu added 2 commits October 11, 2020 01:43
`rb_io_wait` returns a bit-flags Integer representing available
events, or Qfalse if timed out.  Also the result of `NUM2INT` is
not a `VALUE`.

```
$ ./bin/ruby -v -rio/console -e "p IO.console.getch(intr: true, time: 0.1)"
ruby 3.0.0dev (2020-10-09T20:27:30Z master 5ea2ea74cc) [x64-mingw32]
-e:1:in `getch': no implicit conversion of false into Integer (TypeError)
        from -e:1:in `<main>'
```
@nobu nobu merged commit 3bdfaf6 into master Oct 10, 2020
@nobu nobu deleted the fix-timeout-TypeError branch October 10, 2020 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant