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/bformatdec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/bformatdec.cpp') diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp index b5dcfd89..a80ded30 100644 --- a/Alc/bformatdec.cpp +++ b/Alc/bformatdec.cpp @@ -75,7 +75,7 @@ void BFormatDec::reset(const AmbDecConf *conf, bool allow_2band, ALsizei inchans { return mask | (1 << chan); } ); - const ALfloat xover_norm{conf->XOverFreq / (float)srate}; + const ALfloat xover_norm{conf->XOverFreq / static_cast(srate)}; const ALsizei out_order{ (conf->ChanMask > AMBI_3ORDER_MASK) ? 4 : -- cgit v1.2.3