playlist: avoid implicit double upconversion
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 13 Aug 2014 17:32:17 +0000 (20:32 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 13 Aug 2014 18:27:56 +0000 (21:27 +0300)
src/playlist/engine.c

index 87bb012..de1f76b 100644 (file)
@@ -143,7 +143,7 @@ static int RateOffsetCallback( vlc_object_t *obj, char const *psz_cmd,
     if( !strcmp( psz_cmd, "rate-faster" ) )
     {
         /* compensate for input rounding errors */
-        float r = f_rate * 1.1;
+        float r = f_rate * 1.1f;
         for( size_t i = 0; i < i_rate_count; i++ )
             if( r < pf_rate[i] )
             {
@@ -154,7 +154,7 @@ static int RateOffsetCallback( vlc_object_t *obj, char const *psz_cmd,
     else
     {
         /* compensate for input rounding errors */
-        float r = f_rate * .9;
+        float r = f_rate * .9f;
         for( size_t i = 1; i < i_rate_count; i++ )
             if( r <= pf_rate[i] )
             {