Monstro: remove useless cast

This commit is contained in:
Vesa
2014-05-02 22:55:16 +03:00
parent 7a4395aabb
commit 8ea5222793

View File

@@ -1593,14 +1593,14 @@ void MonstroInstrument::updateSamplerate()
void MonstroInstrument::updateSlope1()
{
const float slope = m_env1Slope.value();
m_slope1 = powf( 10.0f, static_cast<double>( slope * -1.0f ) );
m_slope1 = powf( 10.0f, slope * -1.0f );
}
void MonstroInstrument::updateSlope2()
{
const float slope = m_env2Slope.value();
m_slope2 = powf( 10.0f, static_cast<double>( slope * -1.0f ) );
m_slope2 = powf( 10.0f, slope * -1.0f );
}