Commit f5e117e3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

shm: avoid implicit upconversion to double

parent 05faedf1
...@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj) ...@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj)
/* Initializes format */ /* Initializes format */
float rate = var_InheritFloat (obj, "shm-fps"); float rate = var_InheritFloat (obj, "shm-fps");
if (rate <= 0.) if (rate <= 0.f)
goto error; goto error;
mtime_t interval = llroundf((float)CLOCK_FREQ / rate); mtime_t interval = llroundf((float)CLOCK_FREQ / rate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment