mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 20:39:07 +08:00
14 lines
693 B
Diff
14 lines
693 B
Diff
|
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();
|