[vlc-commits] commit: Ambiguity between std::log(double) and std::log(float) ( Francois Cartegnie )

git at videolan.org git at videolan.org
Tue Jun 15 03:18:10 CEST 2010


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jun 14 18:36:53 2010 +0200| [b72555737405cb4f31071ee28367ba42d3150ce7] | committer: Rémi Denis-Courmont 

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

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b72555737405cb4f31071ee28367ba42d3150ce7
---

 modules/gui/qt4/components/interface_widgets.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index b8ed7c5..c130c69 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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() )



More information about the vlc-commits mailing list