mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Fix implicit long to double conversion
Raises a compiler warning when compiled with `-Wimplicit-int-float-conversion` using clang.
This commit is contained in:
		 Joe Noël
					Joe Noël
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							173539ab9e
						
					
				
				
					commit
					d0177ee686
				
			| @@ -115,7 +115,7 @@ namespace Catch { | |||||||
|                 double z1 = normal_quantile((1. - confidence_level) / 2.); |                 double z1 = normal_quantile((1. - confidence_level) / 2.); | ||||||
|  |  | ||||||
|                 auto cumn = [n]( double x ) -> long { |                 auto cumn = [n]( double x ) -> long { | ||||||
|                     return std::lround( normal_cdf( x ) * n ); |                     return std::lround( normal_cdf( x ) * static_cast<double>(n) ); | ||||||
|                 }; |                 }; | ||||||
|                 auto a = [bias, accel](double b) { return bias + b / (1. - accel * b); }; |                 auto a = [bias, accel](double b) { return bias + b / (1. - accel * b); }; | ||||||
|                 double b1 = bias + z1; |                 double b1 = bias + z1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user