vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat Mar  2 
21:22:26 2019 +0200| [b42935fa3f9cb404b1acab9cd31f368b17c62b3b] | committer: 
Rémi Denis-Courmont

udp: fix comparison signedness

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

 modules/access/udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/udp.c b/modules/access/udp.c
index 79768a3721..0443aec30d 100644
--- a/modules/access/udp.c
+++ b/modules/access/udp.c
@@ -281,7 +281,7 @@ skip:
      * we should gather blocks and increase mtu
      * and allocate new overflow block.  See Open()
      */
-    if (unlikely(len > sys->mtu))
+    if (unlikely((size_t)len > sys->mtu))
     {
         msg_Warn(access, "%zd bytes packet received (MTU was %zu), adjusting 
mtu",
                 len, sys->mtu);

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to