diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 15:58:58 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 16:07:22 +0200 |
commit | 20591544c11737820693a6e1bd90b938b87b3ab6 (patch) | |
tree | a19c7c79d434ec89386ff36bc97706dc5ea3c2e4 | |
parent | 44229bcecaf252c3150003da088cd5c8dd463b8d (diff) |
engine/controls/ratecontrol: Add missing cast to int
-rw-r--r-- | src/engine/controls/ratecontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/controls/ratecontrol.cpp b/src/engine/controls/ratecontrol.cpp index e2b25a20f7..f79cc0060d 100644 --- a/src/engine/controls/ratecontrol.cpp +++ b/src/engine/controls/ratecontrol.cpp @@ -475,7 +475,7 @@ double RateControl::calculateSpeed(double baserate, double speed, bool paused, } // If we are reversing (and not scratching,) flip the rate. This is ok even when syncing. // Reverse with vinyl is only ok if absolute mode isn't on. - int vcmode = m_pVCMode ? m_pVCMode->get() : MIXXX_VCMODE_ABSOLUTE; + int vcmode = m_pVCMode ? static_cast<int>(m_pVCMode->get()) : MIXXX_VCMODE_ABSOLUTE; // TODO(owen): Instead of just ignoring reverse mode, should we // disable absolute mode instead? if (m_pReverseButton->get() |