diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-26 13:39:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-26 13:39:15 +0000 |
commit | 3d0786a3a80932e99a63497597770fbb94401653 (patch) | |
tree | b1e38be2f0a4004a41c37c912da41a4b61ad718d /complex.c | |
parent | 68d131d6a50898dc605a739caa76b494b65c6393 (diff) | |
download | ruby-3d0786a3a80932e99a63497597770fbb94401653.tar.gz |
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
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1324,6 +1324,7 @@ nucomp_marshal_dump(VALUE self) get_dat1(self); a = rb_assoc_new(dat->real, dat->imag); + rb_copy_generic_ivar(a, self); return a; } |