mirror of
https://github.com/lammertb/libhttp.git
synced 2025-12-22 04:02:04 +03:00
Cast the milliseconds to DWORD
The milliseconds must be cast to the unsigned DWORD value
This commit is contained in:
@@ -8598,7 +8598,7 @@ static int set_sock_timeout(SOCKET sock, int milliseconds)
|
||||
{
|
||||
int r1, r2;
|
||||
#ifdef _WIN32
|
||||
DWORD t = milliseconds;
|
||||
DWORD t = (DWORD)milliseconds;
|
||||
#else
|
||||
#if defined(TCP_USER_TIMEOUT)
|
||||
unsigned int uto = (unsigned int)milliseconds;
|
||||
|
||||
Reference in New Issue
Block a user