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

index f55c345..d24e14f 100644 (file)
@@ -86,13 +86,13 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
     if (aout != NULL)
     {
         float vol = aout_VolumeGet (aout);
-        if (vol >= 0.)
+        if (vol >= 0.f)
         {
             vol += delta;
-            if (vol < 0.)
-                vol = 0.;
-            if (vol > 2.)
-                vol = 2.;
+            if (vol < 0.f)
+                vol = 0.f;
+            if (vol > 2.f)
+                vol = 2.f;
             vol = (roundf (vol / stepSize)) * stepSize;
             if (volp != NULL)
                 *volp = vol;