aboutsummaryrefslogtreecommitdiffstats
path: root/common/alcomplex.cpp
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2019-01-08 19:42:44 +0100
committerFilip Gawin <[email protected]>2019-01-08 19:42:44 +0100
commit0d3a0635d946ab1f43fd98cec4882248bc990846 (patch)
treef9cade218fe90b815bf1b529607fadd7bfa0f656 /common/alcomplex.cpp
parent2a7f27ca58f9897be06fe815a46ea76a01734a0b (diff)
Avoid using old style casts
To think about: examples/alffplay.cpp:600 OpenAL32/Include/alMain.h:295
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r--common/alcomplex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp
index de2d1be9..ace1b43f 100644
--- a/common/alcomplex.cpp
+++ b/common/alcomplex.cpp
@@ -54,7 +54,7 @@ void complex_fft(std::complex<double> *FFTBuffer, int FFTSize, double Sign)
void complex_hilbert(std::complex<double> *Buffer, int size)
{
- const double inverse_size = 1.0/(double)size;
+ const double inverse_size = 1.0/static_cast<double>(size);
for(int i{0};i < size;i++)
Buffer[i].imag(0.0);