Use std::fabs instead of std::fabsf

This commit is contained in:
Phillip Stephens 2017-02-28 21:36:58 -08:00
parent a23af16349
commit 54bbc7399a
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ void Sequencer::advance(double dt)
} }
else if (m_volFadeTime) 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; float vol;
if (m_curVol < m_volFadeTarget) if (m_curVol < m_volFadeTarget)
vol = std::min(m_volFadeTarget, m_curVol + step); vol = std::min(m_volFadeTarget, m_curVol + step);