mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* marshal.c (r_object0): check inheritance by the internal function.
[ruby-dev:24515] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									9146e09a4f
								
							
						
					
					
						commit
						e49259f772
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Mon Oct 18 23:37:05 2004  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* marshal.c (r_object0): check inheritance by the internal function.
 | 
			
		||||
	  [ruby-dev:24515]
 | 
			
		||||
 | 
			
		||||
Mon Oct 18 15:58:01 2004  NAKAMURA Usaku  <usa@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* range.c (range_step, range_each): need cast.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue