]> git.sesse.net Git - vlc/commitdiff
Ambiguity between std::log(double) and std::log(float)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 14 Jun 2010 16:36:53 +0000 (18:36 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 15 Jun 2010 01:19:40 +0000 (04:19 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/qt4/components/interface_widgets.cpp

index b8ed7c54d4e4104fa5d9037323df53767cb3fa43..c130c699064211ff6d2d4f6fa136aa6a7bd0b773 100644 (file)
@@ -426,7 +426,7 @@ void SpeedControlWidget::updateControls( float rate )
         return;
     }
 
-    double value = 17 * log( rate ) / log( 2 );
+    double value = 17 * log( rate ) / log( 2. );
     int sliderValue = (int) ( ( value > 0 ) ? value + .5 : value - .5 );
 
     if( sliderValue < speedSlider->minimum() )