aboutsummaryrefslogtreecommitdiffstats
path: root/common/alcomplex.c
diff options
context:
space:
mode:
authorRaulshc <[email protected]>2018-05-20 18:44:24 +0200
committerGitHub <[email protected]>2018-05-20 18:44:24 +0200
commit97c165b9518bfdad0fc0506820f32f706488c75e (patch)
treec5b990d8d7e33372a768acfa93b23cf65b5d636e /common/alcomplex.c
parentda6f32a1c0fd89e19a09f24f03cae23df65ac91e (diff)
Add correct cast
Diffstat (limited to 'common/alcomplex.c')
-rw-r--r--common/alcomplex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alcomplex.c b/common/alcomplex.c
index 8a0786e9..9cf9d9bd 100644
--- a/common/alcomplex.c
+++ b/common/alcomplex.c
@@ -64,7 +64,7 @@ void complex_fft(ALcomplex *FFTBuffer, ALsizei FFTSize, ALdouble Sign)
void hilbert(ALsizei size, ALcomplex *InOutBuffer )
{
ALsizei k;
- const ALdouble inverse_size = 1.0/(ALfloat)size;
+ const ALdouble inverse_size = 1.0/(ALdouble)size;
for ( k = 0; k < size;k++ )
InOutBuffer[k].Imag = 0.0;