Qt4 - kill warnings.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Jan 2008 00:08:51 +0000 (00:08 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Jan 2008 00:08:51 +0000 (00:08 +0000)
modules/gui/qt4/components/interface_widgets.cpp

index 7f6a378..ee69321 100644 (file)
@@ -852,13 +852,13 @@ void SpeedControlWidget::updateRate( int sliderValue )
 
     if( sliderValue < 0.0 )
     {
-        rate = INPUT_RATE_DEFAULT* RATE_SLIDER_LENGTH /
-            ( sliderValue * ( 1.0 - RATE_SLIDER_MINIMUM ) + RATE_SLIDER_LENGTH );
+        rate = (int)(INPUT_RATE_DEFAULT* RATE_SLIDER_LENGTH /
+            ( sliderValue * ( 1.0 - RATE_SLIDER_MINIMUM ) + RATE_SLIDER_LENGTH ));
     }
     else
     {
-        rate = INPUT_RATE_DEFAULT* RATE_SLIDER_LENGTH /
-            ( sliderValue * ( RATE_SLIDER_MAXIMUM - 1.0 ) + RATE_SLIDER_LENGTH );
+        rate = (int)(INPUT_RATE_DEFAULT* RATE_SLIDER_LENGTH /
+            ( sliderValue * ( RATE_SLIDER_MAXIMUM - 1.0 ) + RATE_SLIDER_LENGTH ));
     }
 
     THEMIM->getIM()->setRate(rate);