summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 22:40:25 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 22:40:25 +0200
commit90b63fb59827f4cebae147432117ced41527fdb4 (patch)
tree0a1933c1879c7b8880b2a9c916d32a338e796a8c /src/engine
parent400817e7280fd98102512c4739050e28129369cb (diff)
engine/loopingcontrol: Fix precision loss (wrong use of int)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/loopingcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/loopingcontrol.cpp b/src/engine/loopingcontrol.cpp
index adf9953968..2a90532a5c 100644
--- a/src/engine/loopingcontrol.cpp
+++ b/src/engine/loopingcontrol.cpp
@@ -613,7 +613,7 @@ void LoopingControl::setLoopOutToCurrentPosition() {
BeatsPointer pBeats = m_pBeats;
LoopSamples loopSamples = m_loopSamples.getValue();
double quantizedBeat = -1;
- int pos = m_currentSample.getValue();
+ double pos = m_currentSample.getValue();
if (m_pQuantizeEnabled->toBool() && pBeats) {
if (m_bAdjustingLoopOut) {
double closestBeat = m_pClosestBeat->get();