summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-01 23:28:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-01 23:28:57 +0000
commit34a31235c9eeaa9c1d1bcacd7470d2b37429a19f (patch)
tree70c9cac64103516a4d0b37f67db953ddacc29618 /marshal.c
parent810d9fcdbf01f743f111a29902118f88d2f237b0 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index 8caad612c2..75062f480c 100644
--- a/marshal.c
+++ b/marshal.c
@@ -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;