]> granicus.if.org Git - curl/commitdiff
sockfilt: suppress conversion warning with explicit cast
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 16 Jul 2017 11:28:45 +0000 (13:28 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 16 Jul 2017 11:28:45 +0000 (13:28 +0200)
MSVC warns when implicitly casting -1 to unsigned long.

tests/server/sockfilt.c

index 42071a5bc421b563f12a4400fbdbf30315bdee07..6695d8486cdf265d938e0cb219c0b6c3f4efd739 100644 (file)
@@ -549,7 +549,7 @@ static DWORD WINAPI select_ws_wait_thread(LPVOID lpParameter)
     free(data);
   }
   else
-    return -1;
+    return (DWORD)-1;
 
   /* retrieve the type of file to wait on */
   type = GetFileType(handle);