diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-01 23:28:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-10-01 23:28:57 +0000 |
commit | 34a31235c9eeaa9c1d1bcacd7470d2b37429a19f (patch) | |
tree | 70c9cac64103516a4d0b37f67db953ddacc29618 /marshal.c | |
parent | 810d9fcdbf01f743f111a29902118f88d2f237b0 (diff) |
* marshal.c (r_object): TYPE_UCLASS check should be inversed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -798,7 +798,7 @@ r_object(arg) VALUE c = rb_path2class(r_unique(arg)); v = r_object(arg); if (rb_special_const_p(v) || - !RTEST(rb_funcall(c, rb_intern("==="), 1, v))) { + !RTEST(rb_funcall(c, '<', 1, RBASIC(v)->klass))) { rb_raise(rb_eArgError, "dump format error (user class)"); } RBASIC(v)->klass = c; |