From 8b8f5814e292e03bb5b07333a0e634ef0481c85b Mon Sep 17 00:00:00 2001 From: Shane Grant Date: Wed, 15 Feb 2017 13:39:42 -0800 Subject: [PATCH] Fix macro for double comparison in unit test relates #338 --- unittests/portable_binary_archive.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/portable_binary_archive.hpp b/unittests/portable_binary_archive.hpp index b74c4f96f..d1ea19033 100644 --- a/unittests/portable_binary_archive.hpp +++ b/unittests/portable_binary_archive.hpp @@ -63,7 +63,7 @@ inline void swapBytes( T & t ) CHECK_EQ(i_uint64 , o_uint64); \ CHECK_EQ(i_int64 , o_int64); \ if( !std::isnan(i_float) && !std::isnan(o_float) ) CHECK_EQ(i_float , doctest::Approx(o_float).epsilon(1e-5F)); \ - if( !std::isnan(i_float) && !std::isnan(o_float) ) CHECK_EQ(i_double, doctest::Approx(o_double).epsilon(1e-5)); + if( !std::isnan(i_double) && !std::isnan(o_double) ) CHECK_EQ(i_double, doctest::Approx(o_double).epsilon(1e-5)); // Last parameter exists to keep everything hidden in options template inline