[llvm] c503d97 - [Support] Silence warning: comparison of integers of different signs: 'const int' and 'const unsigned long'
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 06:12:13 PDT 2020
Author: Alexandre Ganea
Date: 2020-05-06T09:12:00-04:00
New Revision: c503d97d1934116802663e7b38df304691480700
URL: https://github.com/llvm/llvm-project/commit/c503d97d1934116802663e7b38df304691480700
DIFF: https://github.com/llvm/llvm-project/commit/c503d97d1934116802663e7b38df304691480700.diff
LOG: [Support] Silence warning: comparison of integers of different signs: 'const int' and 'const unsigned long'
Added:
Modified:
llvm/unittests/Support/ProcessTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/ProcessTest.cpp b/llvm/unittests/Support/ProcessTest.cpp
index 86208d4d731a..d4ccfe1ecfd0 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
More information about the llvm-commits
mailing list