From 1e223a956cfbb5482a3c4ebed65c437af7abfdc8 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 18 Apr 2023 17:33:29 +0000 Subject: [PATCH] Add missing 'f' in float literal in SpecialFunctionsImpl.h that triggers implicit conversion warning. --- unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 5d84701e3..03a50d3f4 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -324,7 +324,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T generic_fast_erf_float(const T& a_x) { const T beta_6 = pset1(0.014070470171167667f); const T beta_8 = pset1(0.0010179625278914885f); const T beta_10 = pset1(0.000023547966471313185f); - const T beta_12 = pset1(-1.1791602954361697e-7); + const T beta_12 = pset1(-1.1791602954361697e-7f); // Since the polynomials are odd/even, we need x^2. const T x2 = pmul(x, x);