From d914f3233a5c354b54b660790ee7f6e8f0f1fd7c Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Mon, 29 Jul 2019 16:47:58 +0100 Subject: [PATCH] B doctest fix for Visual Studio https: //github.com/onqtam/doctest/pull/258 Co-Authored-By: Llewellyn Falco --- lib/doctest.2.3.3.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }