[vlc-devel] [PATCH 3/3] sap: silence signedness warnings
Zhao Zhili
quinkblack at foxmail.com
Fri May 18 08:00:54 CEST 2018
---
src/stream_output/sap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c
index 2b5b0e1..e81bb00 100644
--- a/src/stream_output/sap.c
+++ b/src/stream_output/sap.c
@@ -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;
--
2.9.5
More information about the vlc-devel
mailing list