aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-02 09:22:12 -0700
committerChris Robinson <[email protected]>2018-11-02 19:16:02 -0700
commit9a4a3d3977d9360a49f87918d5a7c00aa01971bd (patch)
tree8147d77856c0d90cbe50c53518d89cef5a325db2
parent4fd0cd3151fd2bab0e8035596b40ce15cd1c386b (diff)
Specify the correct array size for casting
-rw-r--r--Alc/mastering.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mastering.c b/Alc/mastering.c
index 52ff5b23..b0b94eea 100644
--- a/Alc/mastering.c
+++ b/Alc/mastering.c
@@ -466,11 +466,11 @@ Compressor* CompressorInit(const ALsizei NumChans, const ALuint SampleRate,
Comp->Hold->Values[0] = -INFINITY;
Comp->Hold->Expiries[0] = hold;
Comp->Hold->Length = hold;
- Comp->Delay = (ALfloat(*)[])(Comp->Hold + 1);
+ Comp->Delay = (ALfloat(*)[BUFFERSIZE])(Comp->Hold + 1);
}
else
{
- Comp->Delay = (ALfloat(*)[])(Comp + 1);
+ Comp->Delay = (ALfloat(*)[BUFFERSIZE])(Comp + 1);
}
}