gcc: remove old style cast

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-12-21 18:00:58 -08:00 committed by Urs Fleisch
parent 78c489d9cc
commit eaf7955c63

View File

@ -888,9 +888,9 @@ void DSDIFF::File::read(bool readProperties, Properties::ReadStyle propertiesSty
if(lengthDSDSamplesTimeChannels == 0) {
// DST compressed signal : need to compute length of DSD uncompressed frames
if(dstFrameRate > 0)
lengthDSDSamplesTimeChannels = (unsigned long long) dstNumFrames *
(unsigned long long) sampleRate /
(unsigned long long) dstFrameRate;
lengthDSDSamplesTimeChannels = static_cast<unsigned long long>(dstNumFrames) *
static_cast<unsigned long long>(sampleRate) /
static_cast<unsigned long long>(dstFrameRate);
else
lengthDSDSamplesTimeChannels = 0;
}