diff options
Diffstat (limited to 'unsupported/test')
-rw-r--r-- | unsupported/test/FFT.cpp | 2 | ||||
-rw-r--r-- | unsupported/test/FFTW.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/FFT.cpp b/unsupported/test/FFT.cpp index 3e4126522..b029ba655 100644 --- a/unsupported/test/FFT.cpp +++ b/unsupported/test/FFT.cpp @@ -45,7 +45,7 @@ complex<long double> promote(long double x) { return complex<long double>( x); long double totalpower=0; long double difpower=0; cerr <<"idx\ttruth\t\tvalue\t|dif|=\n"; - long double pi = acos(-1); + long double pi = acos((long double)-1); for (size_t k0=0;k0<size_t(fftbuf.size());++k0) { complex<long double> acc = 0; long double phinc = -2.*k0* pi / timebuf.size(); diff --git a/unsupported/test/FFTW.cpp b/unsupported/test/FFTW.cpp index fdb41f2e0..c182cab9d 100644 --- a/unsupported/test/FFTW.cpp +++ b/unsupported/test/FFTW.cpp @@ -45,7 +45,7 @@ complex<long double> promote(long double x) { return complex<long double>( x); { long double totalpower=0; long double difpower=0; - long double pi = acos(-1); + long double pi = acos((long double)-1 ); cerr <<"idx\ttruth\t\tvalue\t|dif|=\n"; for (size_t k0=0;k0<fftbuf.size();++k0) { complex<long double> acc = 0; |