summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/window_function/window_function_expression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/window_function/window_function_expression.cpp')
-rw-r--r--src/mongo/db/pipeline/window_function/window_function_expression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/window_function/window_function_expression.cpp b/src/mongo/db/pipeline/window_function/window_function_expression.cpp
index b7fefdb2fc2..125bb1fd009 100644
--- a/src/mongo/db/pipeline/window_function/window_function_expression.cpp
+++ b/src/mongo/db/pipeline/window_function/window_function_expression.cpp
@@ -277,7 +277,7 @@ template <typename WindowFunctionN, typename AccumulatorNType>
Value ExpressionN<WindowFunctionN, AccumulatorNType>::serialize(
boost::optional<ExplainOptions::Verbosity> explain) const {
auto acc = buildAccumulatorOnly();
- MutableDocument result(acc->serialize(nExpr, _input, static_cast<bool>(explain)));
+ MutableDocument result(acc->serialize(nExpr, _input, explain));
MutableDocument windowField;
_bounds.serialize(windowField);