Specify the correct array size for casting

This commit is contained in:
Chris Robinson
2018-11-02 09:22:12 -07:00
parent 4fd0cd3151
commit 9a4a3d3977
+2 -2
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);
}
}