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

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
This commit is contained in:
Francois Cartegnie 2010-06-14 18:36:53 +02:00 committed by Rémi Denis-Courmont
parent f7ef9010f8
commit b725557374

View 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() )