From: Milan Broz Date: Wed, 22 Apr 2026 13:00:49 +0000 (+0200) Subject: Fix signed/unsigned comparison under MINGW64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=237916a30d4925f72f55e5358e5caf7e104da172;p=thirdparty%2Fopenssl.git Fix signed/unsigned comparison under MINGW64 SOCKET is unsigned on Windows, these is no need to cast parameter. INVALID_SOCKET test should work on all platforms. Reviewed-by: Tomas Mraz Reviewed-by: Eugene Syromiatnikov Reviewed-by: Norbert Pocs MergeDate: Thu Apr 30 11:42:20 2026 (Merged from https://github.com/openssl/openssl/pull/30941) --- diff --git a/crypto/bio/bio_sock.c b/crypto/bio/bio_sock.c index 5b793b9af1d..44e8f622aef 100644 --- a/crypto/bio/bio_sock.c +++ b/crypto/bio/bio_sock.c @@ -437,7 +437,7 @@ int BIO_socket_wait(int fd, int for_read, time_t max_time) time_t now; #ifdef _WIN32 - if ((SOCKET)fd == INVALID_SOCKET) + if (fd == INVALID_SOCKET) #else if (fd < 0 || fd >= FD_SETSIZE) #endif