From d5f7a9bc30a0604efaf91d77de52a8ccda3af3e9 Mon Sep 17 00:00:00 2001 From: NAThompson Date: Thu, 18 Jul 2019 16:47:08 -0400 Subject: [PATCH] Cardinal B-splines: Second attempt to fix compile error on old MSVC compilers. --- test/cardinal_b_spline_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cardinal_b_spline_test.cpp b/test/cardinal_b_spline_test.cpp index 9eaac1d88..b819abba6 100644 --- a/test/cardinal_b_spline_test.cpp +++ b/test/cardinal_b_spline_test.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #ifdef BOOST_HAS_FLOAT128 @@ -149,7 +150,7 @@ void test_partition_of_unity() one += cardinal_b_spline(x); x += 1; } - if(!CHECK_ULP_CLOSE(1, one, n)) { + if(!CHECK_ULP_CLOSE(Real(1), one, n)) { std::cerr << " Partition of unity failure at n = " << n << "\n"; } }