[clang] d015445 - Silence warning: comparison of integers of different signs: 'const unsigned int' and 'const long' [-Wsign-compare]
Alexandre Ganea via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 7 10:01:24 PST 2021
Author: Alexandre Ganea
Date: 2021-01-07T13:01:06-05:00
New Revision: d0154456e61c5ab79e25fc9b8bb684ebdca3a7c2
URL: https://github.com/llvm/llvm-project/commit/d0154456e61c5ab79e25fc9b8bb684ebdca3a7c2
DIFF: https://github.com/llvm/llvm-project/commit/d0154456e61c5ab79e25fc9b8bb684ebdca3a7c2.diff
LOG: Silence warning: comparison of integers of different signs: 'const unsigned int' and 'const long' [-Wsign-compare]
(off_t being a signed type)
Added:
Modified:
clang/unittests/Basic/FileEntryTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Basic/FileEntryTest.cpp b/clang/unittests/Basic/FileEntryTest.cpp
index a3e03e6c7c29..16c8e57d9a17 100644
--- a/clang/unittests/Basic/FileEntryTest.cpp
+++ b/clang/unittests/Basic/FileEntryTest.cpp
@@ -57,7 +57,7 @@ struct RefMaps {
TEST(FileEntryTest, Constructor) {
FileEntry FE;
- EXPECT_EQ(0U, FE.getSize());
+ EXPECT_EQ(0, FE.getSize());
EXPECT_EQ(0, FE.getModificationTime());
EXPECT_EQ(nullptr, FE.getDir());
EXPECT_EQ(0U, FE.getUniqueID().getDevice());
More information about the cfe-commits
mailing list