diff options
author | Kazu Hirata <kazu@google.com> | 2024-04-22 20:27:38 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-04-22 20:27:38 -0700 |
commit | 4127a69d6c9106cb96a5da30daec7df80fb812d1 (patch) | |
tree | 7d202d47755bf8b02cd0b535ee636a92e1283af4 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | f8a19a8f74f2dffbca654c5d84881cfe17026dab (diff) | |
download | llvm-4127a69d6c9106cb96a5da30daec7df80fb812d1.zip llvm-4127a69d6c9106cb96a5da30daec7df80fb812d1.tar.gz llvm-4127a69d6c9106cb96a5da30daec7df80fb812d1.tar.bz2 |
[Support] Fix a warning
This patch fixes:
third-party/unittest/googletest/include/gtest/gtest.h:1379:11:
error: comparison of integers of different signs: 'const int' and
'const unsigned long' [-Werror,-Wsign-compare]
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
-rw-r--r-- | llvm/unittests/Support/MathExtrasTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/MathExtrasTest.cpp b/llvm/unittests/Support/MathExtrasTest.cpp index d09f987..67239a2 100644 --- a/llvm/unittests/Support/MathExtrasTest.cpp +++ b/llvm/unittests/Support/MathExtrasTest.cpp @@ -77,7 +77,7 @@ TEST(MathExtras, maxUIntN) { EXPECT_EQ(0xffffffffffffffffULL, maxUIntN(64)); EXPECT_EQ(1ULL, maxUIntN(1)); EXPECT_EQ(0x0fULL, maxUIntN(4)); - EXPECT_EQ(0, maxUIntN(0)); + EXPECT_EQ(0ULL, maxUIntN(0)); } TEST(MathExtras, reverseBits) { |