Commit b7255573 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Rémi Denis-Courmont

Ambiguity between std::log(double) and std::log(float)

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent f7ef9010
...@@ -426,7 +426,7 @@ void SpeedControlWidget::updateControls( float rate ) ...@@ -426,7 +426,7 @@ void SpeedControlWidget::updateControls( float rate )
return; return;
} }
double value = 17 * log( rate ) / log( 2 ); double value = 17 * log( rate ) / log( 2. );
int sliderValue = (int) ( ( value > 0 ) ? value + .5 : value - .5 ); int sliderValue = (int) ( ( value > 0 ) ? value + .5 : value - .5 );
if( sliderValue < speedSlider->minimum() ) if( sliderValue < speedSlider->minimum() )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment