diff options
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 1614afb742..9da4ee217d 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); } |