diff --git a/llvm/unittests/Support/ProcessTest.cpp b/llvm/unittests/Support/ProcessTest.cpp index 86208d4d731a3..d4ccfe1ecfd04 100644 --- a/llvm/unittests/Support/ProcessTest.cpp +++ b/llvm/unittests/Support/ProcessTest.cpp @@ -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