From c66f9eb92ccca68edca2e8fffb5135d8929806bc Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 21 Jan 2001 05:35:13 +0000 Subject: [PATCH] Fixed a warning for MSVC Added changelog [SVN r8669] --- test.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test.hpp b/test.hpp index 002712e..d286b8c 100644 --- a/test.hpp +++ b/test.hpp @@ -2,6 +2,9 @@ // who: developed by Kevlin Henney // when: November 2000 // where: tested with BCC 5.5, MSVC 6.0, and g++ 2.91 +// +// ChangeLog: +// 20 Jan 2001 - Fixed a warning for MSVC (Dave Abrahams) #ifndef TEST_INCLUDED #define TEST_INCLUDED @@ -111,14 +114,14 @@ namespace test // test utilities check(lhs != rhs, "expected unequal values: " + description); } - inline void check_null(const void * ptr, const std::string & description) + inline void check_null(const void* ptr, const std::string & description) { check(!ptr, "expected null pointer: " + description); } - inline void check_non_null(const void * ptr, const std::string & description) + inline void check_non_null(const void* ptr, const std::string & description) { - check(ptr, "expected non-null pointer: " + description); + check(ptr != 0, "expected non-null pointer: " + description); } }