diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-01-08 19:42:44 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-01-08 19:42:44 +0100 |
commit | 0d3a0635d946ab1f43fd98cec4882248bc990846 (patch) | |
tree | f9cade218fe90b815bf1b529607fadd7bfa0f656 /Alc/bformatdec.cpp | |
parent | 2a7f27ca58f9897be06fe815a46ea76a01734a0b (diff) |
Avoid using old style casts
To think about:
examples/alffplay.cpp:600
OpenAL32/Include/alMain.h:295
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 : |