Skip to content

Commit

Permalink
fix isnull
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Sep 19, 2020
1 parent 988122d commit 1ab70c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/iutest_matcher.hpp
Expand Up @@ -174,7 +174,7 @@ class IsNullMatcher : public IMatcher
template<typename U>
AssertionResult operator ()(const U* actual) const
{
if IUTEST_COND_LIKELY( actual == NULL )
if IUTEST_COND_LIKELY( actual == static_cast<U*>(NULL) )
{
return AssertionSuccess();
}
Expand All @@ -195,7 +195,7 @@ class NotNullMatcher : public IMatcher
template<typename U>
AssertionResult operator ()(const U* actual) const
{
if IUTEST_COND_LIKELY( actual != NULL )
if IUTEST_COND_LIKELY( actual != static_cast<U*>(NULL) )
{
return AssertionSuccess();
}
Expand Down

0 comments on commit 1ab70c1

Please sign in to comment.