diff options
author | Mark Borgerding <mark@borgerding.net> | 2009-12-02 22:58:34 -0500 |
---|---|---|
committer | Mark Borgerding <mark@borgerding.net> | 2009-12-02 22:58:34 -0500 |
commit | 012cd62c81af01c6089d57871d492636b843e4a5 (patch) | |
tree | e4ae07a8687af57314d0f7d6aebc76fe4a812c1e /unsupported/test | |
parent | e5c91b4e9553401392c0cb39e9a479e11cc582df (diff) |
explicitly cast to use the acos(long double)
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; |