From 5dc2fbabeee17fe023c38756ebde0c1d56472913 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Sat, 12 Dec 2020 09:26:20 -0800 Subject: Fix implicit cast to double. Triggers `-Wimplicit-float-conversion`, causing a bunch of build errors in Google due to `-Wall`. --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h') diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 34e2cb1e7..a6d2de62b 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -253,10 +253,10 @@ Packet plog_impl_double(const Packet _x) // Add the logarithm of the exponent back to the result of the interpolation. if (base2) { - const Packet cst_log2e = pset1(EIGEN_LOG2E); + const Packet cst_log2e = pset1(static_cast(EIGEN_LOG2E)); x = pmadd(x, cst_log2e, e); } else { - const Packet cst_ln2 = pset1(EIGEN_LN2); + const Packet cst_ln2 = pset1(static_cast(EIGEN_LN2)); x = pmadd(e, cst_ln2, x); } -- cgit v1.2.3