summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_config_validators.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/repl_set_config_validators.h')
-rw-r--r--src/mongo/db/repl/repl_set_config_validators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_set_config_validators.h b/src/mongo/db/repl/repl_set_config_validators.h
index c02cfb1ee15..70c01988412 100644
--- a/src/mongo/db/repl/repl_set_config_validators.h
+++ b/src/mongo/db/repl/repl_set_config_validators.h
@@ -71,7 +71,7 @@ Status validateReplicaSetIdNotNull(OID replicaSetId);
* For serialization and deserialization of certain values in the IDL.
*/
inline void smallExactInt64Append(std::int64_t value, StringData fieldName, BSONObjBuilder* bob) {
- bob->appendNumber(fieldName, static_cast<long long>(value));
+ bob->appendIntOrLL(fieldName, value);
}
inline std::int64_t parseSmallExactInt64(const BSONElement& element) {