diff --git a/lib/multi.c b/lib/multi.c index 7a75eb3dc..ee7e388fa 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -496,8 +496,8 @@ CURLMcode curl_multi_fdset(CURLM *multi_handle, /* this socket is unused, break out of loop */ break; else { - if(s > this_max_fd) - this_max_fd = s; + if(s > (curl_socket_t)this_max_fd) + this_max_fd = (int)s; } }