mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	dir.c (dir_s_glob): RB_GC_GUARD instead of volatile
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									0bb75c4a71
								
							
						
					
					
						commit
						87661039e7
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Sun Feb 16 14:52:46 2014  Eric Wong  <e@80x24.org>
 | 
			
		||||
 | 
			
		||||
	* dir.c (dir_s_glob): RB_GC_GUARD instead of volatile
 | 
			
		||||
 | 
			
		||||
Sun Feb 16 14:33:52 2014  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* include/ruby/ruby.h (RBIGNUM_SIGN): Defined for compatibility.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								dir.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								dir.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1912,8 +1912,9 @@ dir_s_glob(int argc, VALUE *argv, VALUE obj)
 | 
			
		|||
	ary = rb_push_glob(str, flags);
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
	volatile VALUE v = ary;
 | 
			
		||||
	VALUE v = ary;
 | 
			
		||||
	ary = dir_globs(RARRAY_LEN(v), RARRAY_CONST_PTR(v), flags);
 | 
			
		||||
	RB_GC_GUARD(v);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (rb_block_given_p()) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue