gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: mhd_sockets.h: Fixed compiler warnin


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: mhd_sockets.h: Fixed compiler warnings
Date: Tue, 14 Mar 2017 20:46:26 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit e6d9d82e1b2436d072356c73eb26be5148b41cdb
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue Mar 14 22:18:55 2017 +0300

    mhd_sockets.h: Fixed compiler warnings
---
 src/microhttpd/mhd_sockets.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index 3ebe0dc1..4a4c5cd9 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -281,10 +281,10 @@
  *         boolean false otherwise.
  */
 #if defined(MHD_POSIX_SOCKETS)
-#  define MHD_SCKT_FD_FITS_FDSET_SETSIZE_(fd,pset,setsize) ((fd) < (setsize))
+#  define MHD_SCKT_FD_FITS_FDSET_SETSIZE_(fd,pset,setsize) ((fd) < 
((MHD_socket)setsize))
 #elif defined(MHD_WINSOCK_SOCKETS)
 #  define MHD_SCKT_FD_FITS_FDSET_SETSIZE_(fd,pset,setsize) ( 
((void*)(pset)==(void*)0) || \
-                                                             
(((fd_set*)(pset))->fd_count < (setsize)) || \
+                                                             
(((fd_set*)(pset))->fd_count < ((unsigned)setsize)) || \
                                                              
(FD_ISSET((fd),(pset))) )
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]