diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2022-06-29 21:59:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-19 09:47:43 +0900 |
commit | f09536175853d883130c2e54a1d418b497890462 (patch) | |
tree | 3fcd21aeeaf6951a6f3f58587e4bf48dbcafbe53 /vm_insnhelper.c | |
parent | 35c794b26d406c39f90e188e3884003fe6aca532 (diff) | |
download | ruby-f09536175853d883130c2e54a1d418b497890462.tar.gz |
Repalce to NIL_P macro
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 1812f7ce71..837c71ffd5 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -4841,7 +4841,7 @@ vm_objtostring(const rb_iseq_t *iseq, VALUE recv, CALL_DATA cd) // going to use this string for interpolation, it's fine to use the // frozen string. VALUE val = rb_mod_name(recv); - if (val == Qnil) { + if (NIL_P(val)) { val = rb_mod_to_s(recv); } return val; |