From 54bd52d11fbc7b2db1ce1f5a50b8b8ba2e376dec Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 8 Jun 2015 04:00:20 -0400 Subject: [PATCH] Cleared signed/unsigned warning --- socketft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socketft.cpp b/socketft.cpp index 8279196e..4303a41d 100644 --- a/socketft.cpp +++ b/socketft.cpp @@ -100,7 +100,7 @@ void Socket::Bind(unsigned int port, const char *addr) else { unsigned long result = inet_addr(addr); - if (result == -1) // Solaris doesn't have INADDR_NONE + if (result == static_cast(-1)) // Solaris doesn't have INADDR_NONE { SetLastError(SOCKET_EINVAL); CheckAndHandleError_int("inet_addr", SOCKET_ERROR); @@ -135,7 +135,7 @@ bool Socket::Connect(const char *addr, unsigned int port) sa.sin_family = AF_INET; sa.sin_addr.s_addr = inet_addr(addr); - if (sa.sin_addr.s_addr == -1) // Solaris doesn't have INADDR_NONE + if (sa.sin_addr.s_addr == static_cast(-1)) // Solaris doesn't have INADDR_NONE { hostent *lphost = gethostbyname(addr); if (lphost == NULL)