aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index a7d8b0abca..90c0788b83 100644
--- a/marshal.c
+++ b/marshal.c
@@ -400,7 +400,7 @@ w_class(type, obj, arg, check)
VALUE klass = CLASS_OF(obj);
w_extended(klass, arg, check);
w_byte(type, arg);
- path = RSTRING(class2path(klass))->ptr;
+ path = RSTRING(class2path(rb_class_real(klass)))->ptr;
w_unique(path, arg);
}