diff --git a/lib/doctest.2.3.3.hpp b/lib/doctest.2.3.3.hpp index 68bc7f1b7..f21e111f4 100644 --- a/lib/doctest.2.3.3.hpp +++ b/lib/doctest.2.3.3.hpp @@ -3432,7 +3432,7 @@ Approx& Approx::scale(double newScale) { bool operator==(double lhs, const Approx& rhs) { // Thanks to Richard Harris for his help refining this formula return std::fabs(lhs - rhs.m_value) < - rhs.m_epsilon * (rhs.m_scale + std::max(std::fabs(lhs), std::fabs(rhs.m_value))); + rhs.m_epsilon * (rhs.m_scale + std::max(std::fabs(lhs), std::fabs(rhs.m_value))); } bool operator==(const Approx& lhs, double rhs) { return operator==(rhs, lhs); } bool operator!=(double lhs, const Approx& rhs) { return !operator==(lhs, rhs); }