diff options
Diffstat (limited to 'Alc/mastering.cpp')
-rw-r--r-- | Alc/mastering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mastering.cpp b/Alc/mastering.cpp index dcc5cf40..c71b3cc9 100644 --- a/Alc/mastering.cpp +++ b/Alc/mastering.cpp @@ -398,15 +398,15 @@ std::unique_ptr<Compressor> CompressorInit(const ALsizei NumChans, const ALuint { if(hold > 1) { - Comp->mHold = new ((void*)(Comp.get() + 1)) SlidingHold{}; + Comp->mHold = new (reinterpret_cast<void*>(Comp.get() + 1)) SlidingHold{}; Comp->mHold->mValues[0] = -std::numeric_limits<float>::infinity(); Comp->mHold->mExpiries[0] = hold; Comp->mHold->mLength = hold; - Comp->mDelay = (ALfloat(*)[BUFFERSIZE])(Comp->mHold + 1); + Comp->mDelay = reinterpret_cast<ALfloat(*)[BUFFERSIZE]>(Comp->mHold + 1); } else { - Comp->mDelay = (ALfloat(*)[BUFFERSIZE])(Comp.get() + 1); + Comp->mDelay = reinterpret_cast<ALfloat(*)[BUFFERSIZE]>(Comp.get() + 1); } } |