diff options
author | kcat <[email protected]> | 2019-01-08 17:19:15 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-08 17:19:15 -0800 |
commit | 009d738c1e7e84e662d629c7e96b3fcc08adc17d (patch) | |
tree | f9cade218fe90b815bf1b529607fadd7bfa0f656 /Alc/bformatdec.cpp | |
parent | 2a7f27ca58f9897be06fe815a46ea76a01734a0b (diff) | |
parent | 0d3a0635d946ab1f43fd98cec4882248bc990846 (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.cpp | 2 |
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 : |