Skip to content

Commit

Permalink
Fix comparision error between pointer and NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Feb 29, 2024
1 parent bf6409a commit ab510c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ TEST_F(PlanTest, PriorityWithoutBuildLog) {
"a1", "a0", "b0", "c0", "out"};
for (int i = 0; i < n_edges; ++i) {
Edge* edge = plan_.FindWork();
ASSERT_NE(edge, NULL);
ASSERT_TRUE(edge != nullptr);
EXPECT_EQ(expected_order[i], edge->outputs_[0]->path());

std::string err;
Expand Down

0 comments on commit ab510c7

Please sign in to comment.