summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/marshal.c b/marshal.c
index 2cf9a19f56..2d54cb8ff5 100644
--- a/marshal.c
+++ b/marshal.c
@@ -505,8 +505,8 @@ w_objivar(VALUE obj, struct dump_call_arg *arg)
VALUE *ptr;
long i, len, num;
- len = ROBJECT_LEN(obj);
- ptr = ROBJECT_PTR(obj);
+ len = ROBJECT_NUMIV(obj);
+ ptr = ROBJECT_IVPTR(obj);
num = 0;
for (i = 0; i < len; i++)
if (ptr[i] != Qundef)