Skip to content

Commit 72584d9

Browse files
committed
[scudo] Fix inconsistent signed/unsigned comparison
Fix broken test on PPC Differential Revision: https://reviews.llvm.org/D144121
1 parent df2ea2f commit 72584d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ TEST(ScudoHooksTest, AllocateHooks) {
7676

7777
EXPECT_EQ(Ptr, NewPtr);
7878
EXPECT_EQ(nullptr, LastAllocatedPtr);
79-
EXPECT_EQ(0, LastRequestSize);
79+
EXPECT_EQ(0U, LastRequestSize);
8080
EXPECT_EQ(nullptr, LastDeallocatedPtr);
8181
}
8282

@@ -104,7 +104,7 @@ TEST(ScudoHooksTest, AllocateHooks) {
104104
EXPECT_EQ(Ptr, LastDeallocatedPtr);
105105
} else {
106106
EXPECT_EQ(nullptr, LastAllocatedPtr);
107-
EXPECT_EQ(0, LastRequestSize);
107+
EXPECT_EQ(0U, LastRequestSize);
108108
EXPECT_EQ(nullptr, LastDeallocatedPtr);
109109
}
110110

0 commit comments

Comments
 (0)