diff --git a/dbtests/querytests.cpp b/dbtests/querytests.cpp index 8956b3d6d20..d341ebe6ffd 100644 --- a/dbtests/querytests.cpp +++ b/dbtests/querytests.cpp @@ -846,7 +846,7 @@ namespace QueryTests { BSONObj res; for ( int i=0; i<1000; i++ ){ bool found = Helpers::findById( ns() , BSON( "_id" << i ) , res ); - ASSERT_EQUALS( i % 2 , found ); + ASSERT_EQUALS( i % 2 , int(found) ); } }