Commit b7b01997 authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem

sap: silence signedness warnings

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 7ce8aee5
......@@ -192,13 +192,13 @@ sout_AnnounceRegisterSDP (vlc_object_t *obj, const char *sdp,
if (vlc_getaddrinfo (dst, 0, NULL, &res) == 0)
{
if (res->ai_addrlen <= sizeof (addr))
if ((size_t)res->ai_addrlen <= sizeof (addr))
memcpy (&addr, res->ai_addr, res->ai_addrlen);
addrlen = res->ai_addrlen;
freeaddrinfo (res);
}
if (addrlen == 0 || addrlen > sizeof (addr))
if (addrlen == 0 || (size_t)addrlen > sizeof (addr))
{
msg_Err (obj, "No/invalid address specified for SAP announce" );
return NULL;
......
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