From dafeb23e995ca54268903badb3c37b9ed23a5ae1 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Aug 2014 04:39:28 +0000 Subject: [PATCH] struct.c: no rb_class_real twice * struct.c (inspect_struct): as rb_obj_class() returns real class name, so rb_class_name is not needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/struct.c b/struct.c index b2d7590a44..b550be93b1 100644 --- a/struct.c +++ b/struct.c @@ -601,7 +601,7 @@ rb_struct_each_pair(VALUE s) static VALUE inspect_struct(VALUE s, VALUE dummy, int recur) { - VALUE cname = rb_class_name(rb_obj_class(s)); + VALUE cname = rb_class_path(rb_obj_class(s)); VALUE members, str = rb_str_new2("#