Skip to content

Commit

Permalink
fix double promotion in catch_approx.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Johannsen authored and horenmar committed Feb 21, 2024
1 parent 024cfb3 commit f476bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catch2/catch_approx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit f476bcb

Please sign in to comment.