[NFC][scudo] Fix sign-compare warning in test

This commit is contained in:
Vitaly Buka 2021-06-04 19:32:24 -07:00
parent 57ba226296
commit 9ff982dbbd
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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());
}