From 1d836590aa324b7d58481e27a4b1ad6399174a2c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Mar 2005 13:43:56 +0000 Subject: [PATCH] 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 --- src/unix/gsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.50.0