From 4fb3459a2315b94541b122bc9fd16a26a8e861ec Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Sat, 27 Feb 2021 16:16:10 +0100 Subject: Fix double-promotion warnings (cherry picked from commit c22c103e932e511e96645186831363585a44b7a3) --- unsupported/Eigen/src/FFT/ei_kissfft_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported') diff --git a/unsupported/Eigen/src/FFT/ei_kissfft_impl.h b/unsupported/Eigen/src/FFT/ei_kissfft_impl.h index 303f85f13..430953aee 100644 --- a/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +++ b/unsupported/Eigen/src/FFT/ei_kissfft_impl.h @@ -31,7 +31,7 @@ struct kiss_cpx_fft using numext::cos; m_inverse = inverse; m_twiddles.resize(nfft); - double phinc = 0.25 * EIGEN_PI / nfft; + double phinc = 0.25 * double(EIGEN_PI) / nfft; Scalar flip = inverse ? Scalar(1) : Scalar(-1); m_twiddles[0] = Complex(Scalar(1), Scalar(0)); if ((nfft&1)==0) -- cgit v1.2.3