Fix -Wsign-compare errors in TF tests under GCC 4.9.2
R=jkummerow@chromium.org LOG=N BUG= Review URL: https://codereview.chromium.org/1191433003 Cr-Commit-Position: refs/heads/master@{#29023}
This commit is contained in:
parent
06ac599d1e
commit
9efb230d36
@ -596,12 +596,12 @@ TEST_F(GraphReducerTest, ReduceNew1) {
|
|||||||
TEST_F(GraphReducerTest, Wrapping1) {
|
TEST_F(GraphReducerTest, Wrapping1) {
|
||||||
Node* end = graph()->NewNode(&kOpA0);
|
Node* end = graph()->NewNode(&kOpA0);
|
||||||
graph()->SetEnd(end);
|
graph()->SetEnd(end);
|
||||||
EXPECT_EQ(1, graph()->NodeCount());
|
EXPECT_EQ(1U, graph()->NodeCount());
|
||||||
|
|
||||||
A0Wrapper r(graph());
|
A0Wrapper r(graph());
|
||||||
|
|
||||||
ReduceGraph(&r);
|
ReduceGraph(&r);
|
||||||
EXPECT_EQ(2, graph()->NodeCount());
|
EXPECT_EQ(2U, graph()->NodeCount());
|
||||||
|
|
||||||
Node* nend = graph()->end();
|
Node* nend = graph()->end();
|
||||||
EXPECT_NE(end, nend);
|
EXPECT_NE(end, nend);
|
||||||
@ -614,12 +614,12 @@ TEST_F(GraphReducerTest, Wrapping1) {
|
|||||||
TEST_F(GraphReducerTest, Wrapping2) {
|
TEST_F(GraphReducerTest, Wrapping2) {
|
||||||
Node* end = graph()->NewNode(&kOpB0);
|
Node* end = graph()->NewNode(&kOpB0);
|
||||||
graph()->SetEnd(end);
|
graph()->SetEnd(end);
|
||||||
EXPECT_EQ(1, graph()->NodeCount());
|
EXPECT_EQ(1U, graph()->NodeCount());
|
||||||
|
|
||||||
B0Wrapper r(graph());
|
B0Wrapper r(graph());
|
||||||
|
|
||||||
ReduceGraph(&r);
|
ReduceGraph(&r);
|
||||||
EXPECT_EQ(3, graph()->NodeCount());
|
EXPECT_EQ(3U, graph()->NodeCount());
|
||||||
|
|
||||||
Node* nend = graph()->end();
|
Node* nend = graph()->end();
|
||||||
EXPECT_NE(end, nend);
|
EXPECT_NE(end, nend);
|
||||||
|
@ -32,7 +32,7 @@ const Operator kOp2(kOpcode2, Operator::kNoProperties, "Op2", 2, 0, 0, 1, 0, 0);
|
|||||||
|
|
||||||
TEST_F(NodeTest, New) {
|
TEST_F(NodeTest, New) {
|
||||||
Node* const node = Node::New(zone(), 1, &kOp0, 0, nullptr, false);
|
Node* const node = Node::New(zone(), 1, &kOp0, 0, nullptr, false);
|
||||||
EXPECT_EQ(1, node->id());
|
EXPECT_EQ(1U, node->id());
|
||||||
EXPECT_EQ(0, node->UseCount());
|
EXPECT_EQ(0, node->UseCount());
|
||||||
EXPECT_TRUE(node->uses().empty());
|
EXPECT_TRUE(node->uses().empty());
|
||||||
EXPECT_EQ(0, node->InputCount());
|
EXPECT_EQ(0, node->InputCount());
|
||||||
|
Loading…
Reference in New Issue
Block a user