Skip to content

Commit

Permalink
fix alignment unit test.
Browse files Browse the repository at this point in the history
using C++ nullptr as google test consider the ambigous C NULL
incompatible with the left operand.
  • Loading branch information
devnexen committed May 12, 2024
1 parent e111dc6 commit e3f0811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testing/unit/alignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ TEST(Alignment, NonOverlapping) {

// we should return nullptr for crazy allocations like this.
// Fixes #62
ASSERT_EQ(a, NULL);
ASSERT_EQ(b, NULL);
ASSERT_EQ(a, nullptr);
ASSERT_EQ(b, nullptr);
}

0 comments on commit e3f0811

Please sign in to comment.