From 1660e749b40b79e17b39983976555881c9b943f4 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 6 May 2016 08:15:12 -0700 Subject: Avoid double promotion --- test/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/main.h b/test/main.h index b0e3b7818..1bfb9e1b0 100644 --- a/test/main.h +++ b/test/main.h @@ -302,7 +302,7 @@ namespace Eigen { template inline typename NumTraits::Real test_precision() { return NumTraits::dummy_precision(); } template<> inline float test_precision() { return 1e-3f; } template<> inline double test_precision() { return 1e-6; } -template<> inline long double test_precision() { return 1e-6; } +template<> inline long double test_precision() { return 1e-6l; } template<> inline float test_precision >() { return test_precision(); } template<> inline double test_precision >() { return test_precision(); } template<> inline long double test_precision >() { return test_precision(); } -- cgit v1.2.3