diff options
Diffstat (limited to 'src/pcm')
-rw-r--r-- | src/pcm/PcmFormat.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pcm/PcmFormat.cxx b/src/pcm/PcmFormat.cxx index bbd3eb6f5..96f515f84 100644 --- a/src/pcm/PcmFormat.cxx +++ b/src/pcm/PcmFormat.cxx @@ -60,9 +60,7 @@ static void ConvertFromFloat(typename Traits::pointer_type dest, const float *src, size_t n) { - constexpr auto bits = Traits::BITS; - - const float factor = 1 << (bits - 1); + const float factor = 1 << (Traits::BITS - 1); for (size_t i = 0; i != n; ++i) { typename Traits::long_type sample(src[i] * factor); |