summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2022-11-22 21:49:54 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 01:19:55 +0900
commit040e0c8d671f86b20e2b929b4077fcc74aa55074 (patch)
tree2b807d5bc11e24295195acce6014ffbc8bb88eb3 /error.c
parent2c939458cab06b4fda09b55a57b8bac30efe6b17 (diff)
Reuse NIL_OR_UNDEF_P macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6787
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index ad1bc6ee8d..e256f3bf37 100644
--- a/error.c
+++ b/error.c
@@ -2084,7 +2084,7 @@ name_err_mesg_to_str(VALUE obj)
break;
default:
d = rb_protect(name_err_mesg_receiver_name, obj, &state);
- if (state || UNDEF_P(d) || NIL_P(d))
+ if (state || NIL_OR_UNDEF_P(d))
d = rb_protect(rb_inspect, obj, &state);
if (state) {
rb_set_errinfo(Qnil);