From 7d7b486ae7a89cb0088e7fddaab5160ada78ddab Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 31 Aug 2006 12:10:08 +0000 Subject: * eval.c (search_required): use RSTRING_PTR and RSTRING_STR. * object.c (nil_plus): ditto. * ext/dl/cptr.c (rb_dlptr_s_to_ptr): ditto. * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index d04cf0b4d..66463228c 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 */ -- cgit