From: Vadim Zeitlin Date: Sun, 6 Mar 2005 13:43:56 +0000 (+0000) Subject: fix warning about comparing (signed) -1 with (unsigned) in_addr_t under Solaris X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1d836590aa324b7d58481e27a4b1ad6399174a2c?ds=sidebyside fix warning about comparing (signed) -1 with (unsigned) in_addr_t under Solaris git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index eb7b1b5678..227bff1764 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -1656,7 +1656,7 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname) if (inet_aton(hostname, addr) == 0) { #elif defined(HAVE_INET_ADDR) - if ( (addr->s_addr = inet_addr(hostname)) == -1 ) + if ( (addr->s_addr = inet_addr(hostname)) == (in_addr_t)-1 ) { #else /* Use gethostbyname by default */