blob: 01527392f6a41027437ad21816087c5b63108dbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git "a/src/mongocxx/options/change_stream.cpp" "b/src/mongocxx/options/change_stream.cpp"
index 2c651a7e0..2e9c34eb6 100644
--- "a/src/mongocxx/options/change_stream.cpp"
+++ "b/src/mongocxx/options/change_stream.cpp"
@@ -108,7 +108,7 @@ bsoncxx::document::value change_stream::as_bson() const {
if ((count < 0) || (count >= std::numeric_limits<std::uint32_t>::max())) {
throw mongocxx::logic_error{mongocxx::error_code::k_invalid_parameter};
}
- out.append(bsoncxx::builder::basic::kvp("maxAwaitTimeMS", count));
+ out.append(bsoncxx::builder::basic::kvp("maxAwaitTimeMS", static_cast<int64_t>(count)));
}
return out.extract();
|