shm: avoid implicit upconversion to double
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 13 Aug 2014 18:13:27 +0000 (21:13 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 13 Aug 2014 18:27:56 +0000 (21:27 +0300)
modules/access/shm.c

index 45db3c7..7e3a536 100644 (file)
@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj)
 
     /* Initializes format */
     float rate = var_InheritFloat (obj, "shm-fps");
-    if (rate <= 0.)
+    if (rate <= 0.f)
         goto error;
 
     mtime_t interval = llroundf((float)CLOCK_FREQ / rate);