[scudo] Fix -Wsign-compare warning
authorAlex Brachet <abrachet@google.com>
Tue, 17 Jan 2023 17:02:50 +0000 (17:02 +0000)
committerAlex Brachet <abrachet@google.com>
Tue, 17 Jan 2023 17:02:50 +0000 (17:02 +0000)
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp

index ec8a03e..16032fc 100644 (file)
@@ -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');
 }