[compiler-rt] 2bfcecf - [NFC][scudo] Fix "comparison of integers of different signs"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 09:23:23 PDT 2023
Author: Vitaly Buka
Date: 2023-09-27T09:23:03-07:00
New Revision: 2bfcecf4d4afa592ca641191199f8b956e9b3193
URL: https://github.com/llvm/llvm-project/commit/2bfcecf4d4afa592ca641191199f8b956e9b3193
DIFF: https://github.com/llvm/llvm-project/commit/2bfcecf4d4afa592ca641191199f8b956e9b3193.diff
LOG: [NFC][scudo] Fix "comparison of integers of different signs"
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/release_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/release_test.cpp b/compiler-rt/lib/scudo/standalone/tests/release_test.cpp
index 948eb5a8dc2fd68..22047f2ebe15a86 100644
--- a/compiler-rt/lib/scudo/standalone/tests/release_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/release_test.cpp
@@ -23,11 +23,11 @@ TEST(ScudoReleaseTest, RegionPageMap) {
// Various valid counter's max values packed into one word.
scudo::RegionPageMap PageMap2N(1U, 1U, 1UL << I);
ASSERT_TRUE(PageMap2N.isAllocated());
- EXPECT_EQ(1, PageMap2N.getBufferNumElements());
+ EXPECT_EQ(1U, PageMap2N.getBufferNumElements());
// Check the "all bit set" values too.
scudo::RegionPageMap PageMap2N1_1(1U, 1U, ~0UL >> I);
ASSERT_TRUE(PageMap2N1_1.isAllocated());
- EXPECT_EQ(1, PageMap2N1_1.getBufferNumElements());
+ EXPECT_EQ(1U, PageMap2N1_1.getBufferNumElements());
// Verify the packing ratio, the counter is Expected to be packed into the
// closest power of 2 bits.
scudo::RegionPageMap PageMap(1U, SCUDO_WORDSIZE, 1UL << I);
More information about the llvm-commits
mailing list