Skip to content

Commit

Permalink
Compare pointers to NULL casted to their types in test_context and te…
Browse files Browse the repository at this point in the history
…st_utils

Signed-off-by: Amr Ali <amr@databracket.com>
  • Loading branch information
amrali committed Sep 9, 2012
1 parent 2d1e00b commit a198c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_context.cpp
Expand Up @@ -43,6 +43,6 @@ TC ("cloudless/context", "Testing context interface.")
RNT ( cloudless::context c );

cloudless::context c;
R ( (void*)c != NULL );
R ( (void*)c != (void*)NULL );
RNT ( cloudless::context::instance()->shared_from_this() );
}
2 changes: 1 addition & 1 deletion tests/test_utils.cpp
Expand Up @@ -64,7 +64,7 @@ TC ("cloudless/utils", "Testing utility functions.")

str.reset();

R ( str.get() == NULL );
R ( str.get() == (char*)NULL );
}

S ("cloudless/misc", "Testing miscellaneous utilities.")
Expand Down

0 comments on commit a198c35

Please sign in to comment.