From 3d0786a3a80932e99a63497597770fbb94401653 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 26 Jan 2013 13:39:15 +0000 Subject: marshal.c: marshal_dump instance varialbes * marshal.c (w_object): dump instance varialbes of the result of marshal_dump not the original object. [ruby-core:51163] [Bug #7627] * complex.c (nucomp_marshal_dump): need to copy instance variables. * rational.c (nurat_marshal_dump): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rational.c') diff --git a/rational.c b/rational.c index afa4bd4cec..626d29565e 100644 --- a/rational.c +++ b/rational.c @@ -1583,6 +1583,7 @@ nurat_marshal_dump(VALUE self) get_dat1(self); a = rb_assoc_new(dat->num, dat->den); + rb_copy_generic_ivar(a, self); return a; } -- cgit v1.2.3