mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
"local variable 'size' used without having been initialized". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									d85815fbca
								
							
						
					
					
						commit
						38e0c89c35
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Fri Jan 21 00:37:09 2005  Hirokazu Yamamoto  <ocean@m2.ccsnet.ne.jp>
 | 
			
		||||
 | 
			
		||||
	* ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
 | 
			
		||||
	  "local variable 'size' used without having been initialized".
 | 
			
		||||
 | 
			
		||||
Wed Jan 19 18:02:19 2005  NAKAMURA Usaku  <usa@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -828,10 +828,10 @@ syck_parser_bufsize_set( self, size )
 | 
			
		|||
    SyckParser *parser;
 | 
			
		||||
 | 
			
		||||
    if ( rb_respond_to( size, s_to_i ) ) {
 | 
			
		||||
        int size = NUM2INT(rb_funcall(size, s_to_i, 0));
 | 
			
		||||
        int n = NUM2INT(rb_funcall(size, s_to_i, 0));
 | 
			
		||||
 | 
			
		||||
        Data_Get_Struct(self, SyckParser, parser);
 | 
			
		||||
        parser->bufsize = size;
 | 
			
		||||
        parser->bufsize = n;
 | 
			
		||||
    }
 | 
			
		||||
    return self;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue