summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-10-03 22:34:45 +0900
committerGitHub <noreply@github.com>2021-10-03 22:34:45 +0900
commitdc9112cf10e63b5272e9469d080d5d1ced30276e (patch)
tree2970b172b25b303dd839fced592564a77eedeab1 /thread.c
parentfb03598666ddbb9f8b35eb4f599e75654ca7ca06 (diff)
Using NIL_P macro instead of `== Qnil`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4925 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
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)) {