From 06a2bc7c9c6af150f54605c74a95379a7c12ca28 Mon Sep 17 00:00:00 2001 From: Eugene Brevdo Date: Wed, 17 Feb 2016 14:41:59 -0800 Subject: [PATCH] Tiny bugfix in SpecialFunctions: some compilers don't like doubles implicitly downcast to floats in an array constructor. --- Eigen/src/Core/SpecialFunctions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Eigen/src/Core/SpecialFunctions.h b/Eigen/src/Core/SpecialFunctions.h index 6c6b21f98..6b4598e3e 100644 --- a/Eigen/src/Core/SpecialFunctions.h +++ b/Eigen/src/Core/SpecialFunctions.h @@ -182,10 +182,10 @@ struct digamma_impl_maybe_poly { EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE float run(const float s) { const float A[] = { - -4.16666666666666666667E-3, - 3.96825396825396825397E-3, - -8.33333333333333333333E-3, - 8.33333333333333333333E-2 + -4.16666666666666666667E-3f, + 3.96825396825396825397E-3f, + -8.33333333333333333333E-3f, + 8.33333333333333333333E-2f }; float z;