From dc9112cf10e63b5272e9469d080d5d1ced30276e Mon Sep 17 00:00:00 2001 From: "S.H" Date: Sun, 3 Oct 2021 22:34:45 +0900 Subject: Using NIL_P macro instead of `== Qnil` --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 55d8ca671e..86676d7bc6 100644 --- a/thread.c +++ b/thread.c @@ -1330,7 +1330,7 @@ thread_join_m(int argc, VALUE *argv, VALUE self) * This supports INFINITY and negative values, so we can't use * rb_time_interval right now... */ - if (timeout == Qnil) { + if (NIL_P(timeout)) { /* unlimited */ } else if (FIXNUM_P(timeout)) { -- cgit v1.2.1