mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	comment rb_ary_new4 behavior in Ruby 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a530710cb9
								
							
						
					
					
						commit
						ceb64ff9fc
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								array.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								array.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -188,6 +188,8 @@ rb_ary_new4(n, elts)
 | 
			
		|||
    if (n > 0 && elts) {
 | 
			
		||||
	MEMCPY(RARRAY(ary)->ptr, elts, VALUE, n);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /* This assignment to len will be moved to the above "if" block in Ruby 1.9 */
 | 
			
		||||
    RARRAY(ary)->len = n;
 | 
			
		||||
 | 
			
		||||
    return ary;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue