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 9df02f310d..0884b7592c 100644
--- a/marshal.c
+++ b/marshal.c
@@ -821,7 +821,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
mem = rb_struct_members(obj);
for (i=0; i<len; i++) {
w_symbol(SYM2ID(RARRAY_AREF(mem, i)), arg);
- w_object(RSTRUCT_PTR(obj)[i], arg, limit);
+ w_object(RSTRUCT_GET(obj, i), arg, limit);
}
}
break;