Fix double-promotion warnings

(cherry picked from commit c22c103e932e511e96645186831363585a44b7a3)
This commit is contained in:
Christoph Hertzberg 2021-02-27 16:16:10 +01:00
parent 4bfcee47b9
commit 4fb3459a23
2 changed files with 2 additions and 2 deletions

View File

@ -1369,7 +1369,7 @@ struct fast_accurate_exp2<double> {
const Packet p0 = pset1<Packet>(0.240226506959101332);
const Packet C_hi = pset1<Packet>(0.693147180559945286);
const Packet C_lo = pset1<Packet>(4.81927865669806721e-17);
const Packet one = pset1<Packet>(1.0f);
const Packet one = pset1<Packet>(1.0);
// Evaluate P(x) in working precision.
// We evaluate even and odd parts of the polynomial separately

View File

@ -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)