aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-02 09:22:12 -0700
committerChris Robinson <[email protected]>2018-11-02 09:22:12 -0700
commit4ec757c1de78241a2094f57d348e795d0e311b0f (patch)
treea3c6c557dfd9ab9982721c1e9e996a586b20e1cf
parentaaa31d987f92f767af0d5d9633da5bab9d7862b8 (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 dd4ed7e1..902ad259 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);
}
}