# HG changeset patch # User Emmanuel Gil Peyrot # Date 1580390541 -3600 # Node ID aa304109fa1bbf48c7f387a45249359fdc7606c9 # Parent a9c975a0f113e63d0288105e8b93645fbfe9420f util.net: Fix signedness warning on ARM net.c:87:56: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] diff -r a9c975a0f113 -r aa304109fa1b util-src/net.c --- a/util-src/net.c Tue Jan 28 12:46:59 2020 +0000 +++ b/util-src/net.c Thu Jan 30 14:22:21 2020 +0100 @@ -46,8 +46,8 @@ static int lc_local_addresses(lua_State *L) { #ifndef _WIN32 /* Link-local IPv4 addresses; see RFC 3927 and RFC 5735 */ - const long ip4_linklocal = htonl(0xa9fe0000); /* 169.254.0.0 */ - const long ip4_mask = htonl(0xffff0000); + const uint32_t ip4_linklocal = htonl(0xa9fe0000); /* 169.254.0.0 */ + const uint32_t ip4_mask = htonl(0xffff0000); struct ifaddrs *addr = NULL, *a; #endif int n = 1;