summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 8787c4f804..fa42eeefd0 100644
--- a/io.c
+++ b/io.c
@@ -1424,7 +1424,7 @@ rb_io_wait(VALUE io, VALUE events, VALUE timeout)
struct timeval tv_storage;
struct timeval *tv = NULL;
- if (timeout == Qnil || UNDEF_P(timeout)) {
+ if (NIL_OR_UNDEF_P(timeout)) {
timeout = fptr->timeout;
}