diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-06 08:15:12 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-06 08:15:12 -0700 |
commit | 1660e749b40b79e17b39983976555881c9b943f4 (patch) | |
tree | 651108d77dea82d6b409d5bc29d6059efeb0ff95 /test/main.h | |
parent | 69a8a4e1f316d1a86d6fc74a99c794295b0776c0 (diff) |
Avoid double promotion
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dummy_precision(); } template<> inline float test_precision<float>() { return 1e-3f; } template<> inline double test_precision<double>() { return 1e-6; } -template<> inline long double test_precision<long double>() { return 1e-6; } +template<> inline long double test_precision<long double>() { return 1e-6l; } template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); } template<> inline double test_precision<std::complex<double> >() { return test_precision<double>(); } template<> inline long double test_precision<std::complex<long double> >() { return test_precision<long double>(); } |