aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.cpp
diff options
context:
space:
mode:
authorkcat <[email protected]>2019-01-08 17:19:15 -0800
committerGitHub <[email protected]>2019-01-08 17:19:15 -0800
commit009d738c1e7e84e662d629c7e96b3fcc08adc17d (patch)
treef9cade218fe90b815bf1b529607fadd7bfa0f656 /Alc/bformatdec.cpp
parent2a7f27ca58f9897be06fe815a46ea76a01734a0b (diff)
parent0d3a0635d946ab1f43fd98cec4882248bc990846 (diff)
Merge pull request #261 from ShFil119/avoid_old_style_casts
Avoid using old style casts
Diffstat (limited to 'Alc/bformatdec.cpp')
-rw-r--r--Alc/bformatdec.cpp2
1 files changed, 1 insertions, 1 deletions
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<float>(srate)};
const ALsizei out_order{
(conf->ChanMask > AMBI_3ORDER_MASK) ? 4 :