diff options
author | Samuel Williams <[email protected]> | 2021-12-25 02:26:06 +1300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-25 02:26:06 +1300 |
commit | 548c8f5f7aa743ae05610ed372f857a6b488e89c (patch) | |
tree | bdc446ba451f08e777c89c57d8ea23de6ed61fdb /io.c | |
parent | 4f74153846d951dd8ec66017f4e8e286df8ea925 (diff) |
Prefer to use RTEST when checking result of `rb_io_wait`. (#5341)
* Prefer to use RTEST when checking result of `rb_io_wait`.
* Consistently use false for signifying no events ready.
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1483,7 +1483,7 @@ rb_io_maybe_wait(int error, VALUE io, VALUE events, VALUE timeout) default: // Non-specific error, no event is ready: - return RB_INT2NUM(0); + return Qfalse; } } |