summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/query_stage_tests.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/query_stage_tests.cpp b/src/mongo/dbtests/query_stage_tests.cpp
index f7c7dcf85ac..a81bee3b634 100644
--- a/src/mongo/dbtests/query_stage_tests.cpp
+++ b/src/mongo/dbtests/query_stage_tests.cpp
@@ -102,7 +102,8 @@ public:
int count = 0;
PlanExecutor::ExecState state;
- for (RecordId dl; PlanExecutor::ADVANCED == (state = exec->getNext(nullptr, &dl));) {
+ for (RecordId dl; PlanExecutor::ADVANCED ==
+ (state = exec->getNext(static_cast<BSONObj*>(nullptr), &dl));) {
++count;
}
ASSERT_EQUALS(PlanExecutor::IS_EOF, state);