aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
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 909e4422a7..50ff98f5ec 100644
--- a/error.c
+++ b/error.c
@@ -720,7 +720,7 @@ name_err_mesg_to_str(obj)
break;
default:
d = rb_protect(rb_inspect, obj, 0);
- if (!NIL_P(d) || RSTRING(d)->len > 65) {
+ if (NIL_P(d) || RSTRING(d)->len > 65) {
d = rb_any_to_s(obj);
}
desc = RSTRING(d)->ptr;