summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-26 00:40:13 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-26 00:40:13 +0200
commit6d2b13a18a652db94aee09d77504ecff4020a783 (patch)
treedfa49879389a61ae621295b54c1a8bfb8c7d5645
parentacecea84a3783c350c5b47b11d4461ff183ca154 (diff)
track/replaygain: Use toFloat() for normalizedPeak
-rw-r--r--src/track/replaygain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/track/replaygain.cpp b/src/track/replaygain.cpp
index c3282d12c4..c2a1ed0146 100644
--- a/src/track/replaygain.cpp
+++ b/src/track/replaygain.cpp
@@ -120,7 +120,7 @@ CSAMPLE ReplayGain::peakFromString(QString strPeak, bool* pValid) {
return kPeakUndefined;
}
isValid = false;
- const auto peak = static_cast<CSAMPLE>(normalizedPeak.toDouble(&isValid));
+ const CSAMPLE peak = normalizedPeak.toFloat(&isValid);
if (isValid) {
if (isValidPeak(peak)) {
if (pValid) {