[vlc-commits] shm: avoid implicit upconversion to double
Rémi Denis-Courmont
git at videolan.org
Wed Aug 13 20:29:14 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 21:13:27 2014 +0300| [f5e117e324e611bfc1baa92f9b86c30ec6b66a39] | committer: Rémi Denis-Courmont
shm: avoid implicit upconversion to double
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5e117e324e611bfc1baa92f9b86c30ec6b66a39
---
modules/access/shm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/shm.c b/modules/access/shm.c
index 45db3c7..7e3a536 100644
--- a/modules/access/shm.c
+++ b/modules/access/shm.c
@@ -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);
More information about the vlc-commits
mailing list