From 0d3a0635d946ab1f43fd98cec4882248bc990846 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Tue, 8 Jan 2019 19:42:44 +0100 Subject: Avoid using old style casts To think about: examples/alffplay.cpp:600 OpenAL32/Include/alMain.h:295 --- Alc/effects/compressor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/compressor.cpp') diff --git a/Alc/effects/compressor.cpp b/Alc/effects/compressor.cpp index ddf104f4..1b840c44 100644 --- a/Alc/effects/compressor.cpp +++ b/Alc/effects/compressor.cpp @@ -60,8 +60,8 @@ ALboolean ALcompressorState::deviceUpdate(const ALCdevice *device) /* Number of samples to do a full attack and release (non-integer sample * counts are okay). */ - const ALfloat attackCount = (ALfloat)device->Frequency * ATTACK_TIME; - const ALfloat releaseCount = (ALfloat)device->Frequency * RELEASE_TIME; + const ALfloat attackCount = static_cast(device->Frequency) * ATTACK_TIME; + const ALfloat releaseCount = static_cast(device->Frequency) * RELEASE_TIME; /* Calculate per-sample multipliers to attack and release at the desired * rates. -- cgit v1.2.3