Browse Source

Cast the milliseconds to DWORD

The milliseconds must be cast to the unsigned DWORD value
Matt Clarkson 10 years ago
parent
commit
4941f78b95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -8598,7 +8598,7 @@ static int set_sock_timeout(SOCKET sock, int milliseconds)
 {
 {
 	int r1, r2;
 	int r1, r2;
 #ifdef _WIN32
 #ifdef _WIN32
-	DWORD t = milliseconds;
+	DWORD t = (DWORD)milliseconds;
 #else
 #else
 #if defined(TCP_USER_TIMEOUT)
 #if defined(TCP_USER_TIMEOUT)
 	unsigned int uto = (unsigned int)milliseconds;
 	unsigned int uto = (unsigned int)milliseconds;