diff --git a/src/pcm/FloatConvert.hxx b/src/pcm/FloatConvert.hxx index 70b00bcba..8f77227ec 100644 --- a/src/pcm/FloatConvert.hxx +++ b/src/pcm/FloatConvert.hxx @@ -57,8 +57,7 @@ struct IntegerToFloatSampleConvert { static constexpr DV factor = 1.0 / FloatToIntegerSampleConvert::factor; static_assert(factor > 0, "Wrong factor"); - gcc_const - static DV Convert(SV src) noexcept { + static constexpr DV Convert(SV src) noexcept { return DV(src) * factor; } };