From 54bbc7399a57a50ced2725094d9a0b8a4ea79c39 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 28 Feb 2017 21:36:58 -0800 Subject: [PATCH] Use std::fabs instead of std::fabsf --- lib/Sequencer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sequencer.cpp b/lib/Sequencer.cpp index cc51dac..e7b3a89 100644 --- a/lib/Sequencer.cpp +++ b/lib/Sequencer.cpp @@ -169,7 +169,7 @@ void Sequencer::advance(double dt) } else if (m_volFadeTime) { - float step = dt / m_volFadeTime * std::fabsf(m_volFadeTarget - m_volFadeStart); + float step = dt / m_volFadeTime * std::fabs(m_volFadeTarget - m_volFadeStart); float vol; if (m_curVol < m_volFadeTarget) vol = std::min(m_volFadeTarget, m_curVol + step);