diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 22:47:55 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 23:55:51 +0200 |
commit | 769e7e4ada83ec8949d47a6abcdbef9eb15a31e4 (patch) | |
tree | 8d1020253e0d2898f0119985dab0da75e51ece3c /src/engine | |
parent | e433d42d51d6961f46c7341163b4038c16bd58b3 (diff) |
engine/vinylcontrolcontrol: Fix precision loss (wrong use of int)
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/controls/vinylcontrolcontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/controls/vinylcontrolcontrol.cpp b/src/engine/controls/vinylcontrolcontrol.cpp index bece0ae145..fcd3e50542 100644 --- a/src/engine/controls/vinylcontrolcontrol.cpp +++ b/src/engine/controls/vinylcontrolcontrol.cpp @@ -117,7 +117,7 @@ void VinylControlControl::slotControlVinylSeek(double fractionalPos) { } double shortest_distance = 0; - int nearest_playpos = -1; + double nearest_playpos = -1; const QList<CuePointer> cuePoints(pTrack->getCuePoints()); QListIterator<CuePointer> it(cuePoints); @@ -127,7 +127,7 @@ void VinylControlControl::slotControlVinylSeek(double fractionalPos) { continue; } - int cue_position = pCue->getPosition(); + double cue_position = pCue->getPosition(); // pick cues closest to new_playpos if ((nearest_playpos == -1) || (fabs(new_playpos - cue_position) < shortest_distance)) { |