mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
810d9fcdbf
commit
34a31235c9
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Oct 2 08:04:52 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* marshal.c (r_object): TYPE_UCLASS check should be inversed.
|
||||
|
||||
Wed Sep 26 19:02:39 2001 Guy Decoux <ts@moulon.inra.fr>
|
||||
|
||||
* parse.y: allow 'primary[] = arg'
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue