1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[CodeView] Silence some -Wsign-compare warnings

llvm-svn: 302971
This commit is contained in:
Justin Bogner 2017-05-13 00:11:39 +00:00
parent 609ea619d8
commit f945705243

View File

@ -229,12 +229,12 @@ TEST_F(RandomAccessVisitorTest, MultipleVisits) {
}
// [0,8) should be present
EXPECT_EQ(8, Visitor.database().size());
EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 5, 5, 5
EXPECT_EQ(3, TestState->Callbacks.count());
EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@ -257,12 +257,12 @@ TEST_F(RandomAccessVisitorTest, DescendingWithinChunk) {
}
// [0, 7]
EXPECT_EQ(8, Visitor.database().size());
EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 2, 4, 7
EXPECT_EQ(3, TestState->Callbacks.count());
EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@ -285,12 +285,12 @@ TEST_F(RandomAccessVisitorTest, AscendingWithinChunk) {
}
// [0, 7]
EXPECT_EQ(8, Visitor.database().size());
EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 2, 4, 7
EXPECT_EQ(3, TestState->Callbacks.count());
EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto &I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@ -314,12 +314,12 @@ TEST_F(RandomAccessVisitorTest, StopPrematurelyInChunk) {
}
// [0, 8) should be visited.
EXPECT_EQ(8, Visitor.database().size());
EXPECT_EQ(8u, Visitor.database().size());
for (uint32_t I = 0; I < 8; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// [0, 2]
EXPECT_EQ(3, TestState->Callbacks.count());
EXPECT_EQ(3u, TestState->Callbacks.count());
for (auto I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}
@ -342,12 +342,12 @@ TEST_F(RandomAccessVisitorTest, InnerChunk) {
}
// [4, 9)
EXPECT_EQ(5, Visitor.database().size());
EXPECT_EQ(5u, Visitor.database().size());
for (uint32_t I = 4; I < 9; ++I)
EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
// 5, 7
EXPECT_EQ(2, TestState->Callbacks.count());
EXPECT_EQ(2u, TestState->Callbacks.count());
for (auto &I : enumerate(IndicesToVisit))
EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
}