From 040e0c8d671f86b20e2b929b4077fcc74aa55074 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Tue, 22 Nov 2022 21:49:54 +0900 Subject: Reuse NIL_OR_UNDEF_P macro --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') 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; } -- cgit v1.2.1