forked from OSchip/llvm-project
[NFC][scudo] Fix sign-compare warning in test
This commit is contained in:
parent
57ba226296
commit
9ff982dbbd
|
@ -109,7 +109,7 @@ TEST_F(MemtagTest, SelectRandomTag) {
|
|||
uptr Tags = 0;
|
||||
for (uptr I = 0; I < 100000; ++I)
|
||||
Tags = Tags | (1u << extractTag(selectRandomTag(Ptr, 0)));
|
||||
EXPECT_EQ(0xfffe, Tags);
|
||||
EXPECT_EQ(0xfffeull, Tags);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
TEST(ScudoStringsTest, Constructor) {
|
||||
scudo::ScopedString Str;
|
||||
EXPECT_EQ(0, Str.length());
|
||||
EXPECT_EQ(0ul, Str.length());
|
||||
EXPECT_EQ('\0', *Str.data());
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ TEST(ScudoStringsTest, Clear) {
|
|||
scudo::ScopedString Str;
|
||||
Str.append("123");
|
||||
Str.clear();
|
||||
EXPECT_EQ(0, Str.length());
|
||||
EXPECT_EQ(0ul, Str.length());
|
||||
EXPECT_EQ('\0', *Str.data());
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ TEST(ScudoStringsTest, ClearLarge) {
|
|||
for (int i = 0; i < 10000; ++i)
|
||||
Str.append("123");
|
||||
Str.clear();
|
||||
EXPECT_EQ(0, Str.length());
|
||||
EXPECT_EQ(0ul, Str.length());
|
||||
EXPECT_EQ('\0', *Str.data());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue