Using NIL_P macro instead of == Qnil

This commit is contained in:
S.H 2021-10-03 22:34:45 +09:00 committed by GitHub
parent fb03598666
commit dc9112cf10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-10-03 22:35:06 +09:00
Merged: https://github.com/ruby/ruby/pull/4925

Merged-By: nobu <nobu@ruby-lang.org>
18 changed files with 43 additions and 43 deletions

2
dir.c
View file

@ -989,7 +989,7 @@ chdir_yield(VALUE v)
dir_chdir(args->new_path);
args->done = TRUE;
chdir_blocking++;
if (chdir_thread == Qnil)
if (NIL_P(chdir_thread))
chdir_thread = rb_thread_current();
return rb_yield(args->new_path);
}