[vlc-commits] udp: fix comparison signedness
Rémi Denis-Courmont
git at videolan.org
Sat Mar 2 20:29:59 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | 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);
More information about the vlc-commits
mailing list