libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit e6d9d82e1b2436d072356c73eb26be5148b41cdb
parent 6c67437c6213e4760eb00a4df6f2563dea60cdad
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 14 Mar 2017 22:18:55 +0300

mhd_sockets.h: Fixed compiler warnings

Diffstat:
Msrc/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 @@ -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