summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
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 79a11b76fee..79e02b910c7 100644
--- a/variable.c
+++ b/variable.c
@@ -170,7 +170,7 @@ VALUE
rb_mod_name(mod)
VALUE mod;
{
- VALUE path = classname(rb_obj_type(mod));
+ VALUE path = classname(rb_class_real(mod));
if (path) return rb_str_dup(path);
return rb_str_new(0,0);