diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-18 14:37:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-18 14:37:42 +0000 |
commit | c03e34a1de0a73c56c7fd58b712c0506dc8dd916 (patch) | |
tree | a0c64f3f308121c09b247f86467a25ecf2282e9b /marshal.c | |
parent | 7518848d86addedd9fd5b3f3ef079fc43e0f6326 (diff) | |
download | ruby-c03e34a1de0a73c56c7fd58b712c0506dc8dd916.tar.gz ruby-c03e34a1de0a73c56c7fd58b712c0506dc8dd916.tar.xz ruby-c03e34a1de0a73c56c7fd58b712c0506dc8dd916.zip |
* marshal.c (r_object0): check inheritance by the internal function.
[ruby-dev:24515]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1050,7 +1050,7 @@ r_object0(arg, proc, ivp, extmod) format_error: rb_raise(rb_eArgError, "dump format error (user class)"); } - if (TYPE(v) == T_MODULE || !RTEST(rb_funcall(c, '<', 1, RBASIC(v)->klass))) { + if (TYPE(v) == T_MODULE || !RTEST(rb_class_inherited_p(c, RBASIC(v)->klass))) { VALUE tmp = rb_obj_alloc(c); if (TYPE(v) != TYPE(tmp)) goto format_error; |