summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-04-16 13:27:04 -0400
committerMathias Stearn <mathias@10gen.com>2014-05-01 13:00:19 -0400
commit0ee4735ab8fb718b40e2049d014e17736035ba46 (patch)
tree75360fbe55731b6f638f6ba680677a5b0c47cf4b /src/mongo/dbtests/jsobjtests.cpp
parent35562387e6d3e23245529589e264be3551f2dd0b (diff)
downloadmongo-0ee4735ab8fb718b40e2049d014e17736035ba46.tar.gz
SERVER-13617 don't compare pointers to 0 using >
GCC with -Wextra gives the following message in these cases: ordered comparison of pointer with integer zero
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index edada4bd770..061c3d4fb14 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -1929,7 +1929,7 @@ namespace JsobjTests {
}
catch ( std::exception& e ) {
state = 2;
- ASSERT( strstr( e.what() , "_id: 5" ) > 0 );
+ ASSERT( strstr( e.what() , "_id: 5" ) != NULL );
}
free( crap );
ASSERT_EQUALS( 2 , state );