[Support] Silence warning: comparison of integers of different signs: 'const int...
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Tue, 5 May 2020 20:01:36 +0000 (16:01 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Wed, 6 May 2020 13:12:00 +0000 (09:12 -0400)
llvm/unittests/Support/ProcessTest.cpp

index 86208d4..d4ccfe1 100644 (file)
@@ -25,7 +25,7 @@ TEST(ProcessTest, GetProcessIdTest) {
   const Process::Pid pid = Process::getProcessId();
 
 #ifdef _WIN32
-  EXPECT_EQ(pid, ::GetCurrentProcessId());
+  EXPECT_EQ((DWORD)pid, ::GetCurrentProcessId());
 #else
   EXPECT_EQ(pid, ::getpid());
 #endif