Commit f6e1a870 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit b72555737405cb4f31071ee28367ba42d3150ce7)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 98afd051
...@@ -428,7 +428,7 @@ void SpeedControlWidget::updateControls( float rate ) ...@@ -428,7 +428,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