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

Fix Win32 compilation warning

parent 853edfd0
......@@ -237,7 +237,7 @@ net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len)
case AF_INET:
{
struct sockaddr_in *v4 = (struct sockaddr_in *)addr;
if (len < sizeof (*v4))
if ((size_t)len < sizeof (*v4))
return VLC_FALSE;
return IN_MULTICAST (ntohl (v4->sin_addr.s_addr)) != 0;
}
......@@ -247,7 +247,7 @@ net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len)
case AF_INET6:
{
struct sockaddr_in6 *v6 = (struct sockaddr_in6 *)addr;
if (len < sizeof (*v6))
if ((size_t)len < sizeof (*v6))
return VLC_FALSE;
return IN6_IS_ADDR_MULTICAST (&v6->sin6_addr) != 0;
}
......
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