summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-19 20:24:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-19 20:24:30 +0000
commit347e748bddd42e5a39dcb5c55ac37704a14b9374 (patch)
tree33aa9f1624bf85f20fb49336e24bd5ee279f7545 /variable.c
parentddbee25a3b6c9385880c29efe936906646b58ca4 (diff)
variable.c: real class name
* variable.c (rb_class2name): should return real class name, not singleton class or iclass. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 1614afb..9da4ee2 100644
--- a/variable.c
+++ b/variable.c
@@ -386,7 +386,7 @@ const char *
rb_class2name(VALUE klass)
{
int permanent;
- VALUE path = rb_tmp_class_path(klass, &permanent, rb_ivar_set);
+ VALUE path = rb_tmp_class_path(rb_class_real(klass), &permanent, rb_ivar_set);
if (NIL_P(path)) return NULL;
return RSTRING_PTR(path);
}