Browse Source

Settings DWORD with negative integer

-1U is equal to ~0U which is needed to apease the MSVC warning
Matt Clarkson 10 years ago
parent
commit
f6419cb44c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1151,7 +1151,7 @@ static void mg_set_thread_name(const char *name)
 		THREADNAME_INFO info;
 		info.dwType = 0x1000;
 		info.szName = threadName;
-		info.dwThreadID = -1;
+		info.dwThreadID = ~0U;
 		info.dwFlags = 0;
 
 		RaiseException(0x406D1388,