[vlc-commits] playlist: avoid implicit double upconversion

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 20:29:13 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 20:32:17 2014 +0300| [42413c1521efc9c63fedba9ccc120f1716169060] | committer: Rémi Denis-Courmont

playlist: avoid implicit double upconversion

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

 src/playlist/engine.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 87bb012..de1f76b 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -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] )
             {



More information about the vlc-commits mailing list