fix double promotion in catch_approx.cpp

This commit is contained in:
Sven Johannsen 2024-02-21 11:40:04 +01:00 committed by Martin Hořeňovský
parent 024cfb3542
commit f476bcb633
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ bool marginComparison(double lhs, double rhs, double margin) {
namespace Catch {
Approx::Approx ( double value )
: m_epsilon( std::numeric_limits<float>::epsilon()*100. ),
: m_epsilon( static_cast<double>(std::numeric_limits<float>::epsilon())*100. ),
m_margin( 0.0 ),
m_scale( 0.0 ),
m_value( value )