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 539165ecfa..14a4cd6197 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1276,7 +1276,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
}
rb_ary_push(values, r_object(arg));
}
- rb_obj_call_init(v, RARRAY_LEN(values), RARRAY_PTR(values));
+ rb_struct_initialize(v, values);
v = r_leave(v, arg);
}
break;