From e3f0811c978b31f63b666d043dddbe11421cd3f2 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 12 May 2024 13:23:35 +0100 Subject: [PATCH] fix alignment unit test. using C++ nullptr as google test consider the ambigous C NULL incompatible with the left operand. --- src/testing/unit/alignment.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/unit/alignment.cc b/src/testing/unit/alignment.cc index 0533116..715c5af 100644 --- a/src/testing/unit/alignment.cc +++ b/src/testing/unit/alignment.cc @@ -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); }