diff options
author | S-H-GAMELINKS <[email protected]> | 2022-06-29 21:59:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-08-19 09:47:43 +0900 |
commit | f09536175853d883130c2e54a1d418b497890462 (patch) | |
tree | 3fcd21aeeaf6951a6f3f58587e4bf48dbcafbe53 /variable.c | |
parent | 35c794b26d406c39f90e188e3884003fe6aca532 (diff) |
Repalce to NIL_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6073
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index a3512adc99..056a1000b8 100644 --- a/variable.c +++ b/variable.c @@ -2605,7 +2605,7 @@ autoload_load_needed(VALUE _arguments) return Qfalse; } - if (autoload_data->mutex == Qnil) { + if (NIL_P(autoload_data->mutex)) { autoload_data->mutex = rb_mutex_new(); autoload_data->fork_gen = GET_VM()->fork_gen; } |