diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-21 04:39:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-21 04:39:28 +0000 |
commit | dafeb23e995ca54268903badb3c37b9ed23a5ae1 (patch) | |
tree | efb975a4b86a650705e92f7286888360e1486872 /struct.c | |
parent | 36ee0a83fe27be4564be773165bc55e58c3ddf7e (diff) |
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
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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("#<struct "); long i, len; char first = RSTRING_PTR(cname)[0]; |