From eaf7955c63f361236ddcd1b1ac351f1df4e92418 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 21 Dec 2023 18:00:58 -0800 Subject: [PATCH] gcc: remove old style cast Signed-off-by: Rosen Penev --- taglib/dsdiff/dsdifffile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taglib/dsdiff/dsdifffile.cpp b/taglib/dsdiff/dsdifffile.cpp index 18afe264..840b84d1 100644 --- a/taglib/dsdiff/dsdifffile.cpp +++ b/taglib/dsdiff/dsdifffile.cpp @@ -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(dstNumFrames) * + static_cast(sampleRate) / + static_cast(dstFrameRate); else lengthDSDSamplesTimeChannels = 0; }