From: Alexandre Ganea Date: Tue, 5 May 2020 20:01:36 +0000 (-0400) Subject: [Support] Silence warning: comparison of integers of different signs: 'const int... X-Git-Tag: llvmorg-12-init~6838 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c503d97d1934116802663e7b38df304691480700;p=platform%2Fupstream%2Fllvm.git [Support] Silence warning: comparison of integers of different signs: 'const int' and 'const unsigned long' --- diff --git a/llvm/unittests/Support/ProcessTest.cpp b/llvm/unittests/Support/ProcessTest.cpp index 86208d4..d4ccfe1 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