summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-09 15:19:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-09 15:19:17 +0000
commitdf71dae11f5884ffef23abed0e59fe88d3496fac (patch)
tree2e43d98455062518cf6b29e5ec2fafa01deff343 /marshal.c
parent95cd9e4bb2d97c31a52b4b0e7ac2b5d4776aaf1a (diff)
* marshal.c (w_object): do not dump generic instance variable when
marshal_dump is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 84125f7..e4f8445 100644
--- a/marshal.c
+++ b/marshal.c
@@ -486,7 +486,7 @@ w_object(obj, arg, limit)
w_byte(TYPE_USRMARSHAL, arg);
w_unique(rb_class2name(CLASS_OF(obj)), arg);
w_object(v, arg, limit);
- if (ivtbl) w_ivar(ivtbl, &c_arg);
+ if (ivtbl) w_ivar(0, &c_arg); /* do not dump generic_ivar */
return;
}
if (rb_respond_to(obj, s_dump)) {
@@ -498,7 +498,7 @@ w_object(obj, arg, limit)
}
w_class(TYPE_USERDEF, obj, arg);
w_bytes(RSTRING(v)->ptr, RSTRING(v)->len, arg);
- if (ivtbl) w_ivar(ivtbl, &c_arg);
+ if (ivtbl) w_ivar(0, &c_arg);
return;
}