Specify the correct array size for casting

This commit is contained in:
Chris Robinson 2018-11-02 09:22:12 -07:00
parent aaa31d987f
commit 4ec757c1de

View File

@ -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);
}
}