mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Prefer RBOOL
This commit is contained in:
		
							parent
							
								
									069cca6f74
								
							
						
					
					
						commit
						789da481fc
					
				
				
				Notes:
				
					git
				
				2022-01-01 18:54:14 +09:00 
				
			
			
			
		
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -693,7 +693,7 @@ checktype
 | 
			
		|||
(VALUE val)
 | 
			
		||||
(VALUE ret)
 | 
			
		||||
{
 | 
			
		||||
    ret = (TYPE(val) == (int)type) ? Qtrue : Qfalse;
 | 
			
		||||
    ret = RBOOL(TYPE(val) == (int)type);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**********************************************************/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								yjit.rb
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								yjit.rb
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -149,7 +149,7 @@ module RubyVM::YJIT
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  def self.enabled?
 | 
			
		||||
    Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse'
 | 
			
		||||
    Primitive.cexpr! 'RBOOL(rb_yjit_enabled_p())'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def self.simulate_oom!
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue