From 5132d075222208770d4f77e39fb730555c74cf53 Mon Sep 17 00:00:00 2001 From: danferns Date: Mon, 12 Aug 2024 12:52:27 +0530 Subject: [PATCH] Fix implicit conversion of double to int --- src/track/keyutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/track/keyutils.cpp b/src/track/keyutils.cpp index 53bfaaebb1ca..b75ae9a5206f 100644 --- a/src/track/keyutils.cpp +++ b/src/track/keyutils.cpp @@ -735,7 +735,7 @@ double KeyUtils::trackSimilarity(mixxx::track::io::key::ChromaticKey key1, // relative pitch difference between tracks, when played at same tempo const double pitchDiff = trackSyncPitchDifference(key1, bpm1, key2, bpm2); - const int roundedPitchDiff = normalizePitch(round(pitchDiff)); + const int roundedPitchDiff = (int)normalizePitch(round(pitchDiff)); double cents = abs(roundedPitchDiff - pitchDiff); // bring cents value back to [0-0.5] for pitchDiff values > 11.50 if (cents > 11) {