aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index d04cf0b4d8..66463228c8 100644
--- a/object.c
+++ b/object.c
@@ -729,7 +729,7 @@ nil_plus(VALUE x, VALUE y)
return y;
default:
rb_raise(rb_eTypeError, "tried to add %s(%s) to nil",
- RSTRING(rb_inspect(y))->ptr,
+ RSTRING_PTR(rb_inspect(y)),
rb_obj_classname(y));
}
/* not reached */