[compiler-rt] 6be602f - [scudo] Fix -Wsign-compare warning
Alex Brachet via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 09:03:06 PST 2023
Author: Alex Brachet
Date: 2023-01-17T17:02:50Z
New Revision: 6be602f79cbf501f0e67cee3f926c11fa7490d4f
URL: https://github.com/llvm/llvm-project/commit/6be602f79cbf501f0e67cee3f926c11fa7490d4f
DIFF: https://github.com/llvm/llvm-project/commit/6be602f79cbf501f0e67cee3f926c11fa7490d4f.diff
LOG: [scudo] Fix -Wsign-compare warning
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
index ec8a03ec8c8a..16032fc54549 100644
--- a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
@@ -705,7 +705,7 @@ SCUDO_TYPED_TEST(ScudoCombinedTest, ReallocateInPlaceStress) {
SCUDO_TYPED_TEST(ScudoCombinedTest, RingBufferSize) {
auto *Allocator = this->Allocator.get();
auto Size = Allocator->getRingBufferSize();
- ASSERT_GT(Size, 0);
+ ASSERT_GT(Size, 0u);
EXPECT_EQ(Allocator->getRingBufferAddress()[Size - 1], '\0');
}
More information about the llvm-commits
mailing list