vcpkg/ports/mongo-cxx-driver/fix-android.patch

14 lines
693 B
Diff
Raw Normal View History

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();