diff options
author | Bynn Lee <bynn.lee@mongodb.com> | 2021-02-25 21:49:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-05 22:29:26 +0000 |
commit | 51ba5d1540ea957a7fb03a08bbb1ef4f9d6e80d2 (patch) | |
tree | 4377e994a7029d48722f5501545302484e3de641 /src/mongo/platform | |
parent | a407cf2e8e25aad8762bb379854e10acf17793bd (diff) | |
download | mongo-51ba5d1540ea957a7fb03a08bbb1ef4f9d6e80d2.tar.gz |
SERVER-43762 tighten the overload set for BSONObjBuilder::appendNumber
Diffstat (limited to 'src/mongo/platform')
-rw-r--r-- | src/mongo/platform/mutex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/platform/mutex.cpp b/src/mongo/platform/mutex.cpp index eb2501000c2..8766b3dc20b 100644 --- a/src/mongo/platform/mutex.cpp +++ b/src/mongo/platform/mutex.cpp @@ -38,7 +38,7 @@ void Identity::serialize(BSONObjBuilder* bob) const { bob->append("name"_sd, name()); size_t id = index(); - bob->appendNumber("latchId"_sd, id); + bob->appendNumber("latchId"_sd, static_cast<long long>(id)); auto& hal = level(); invariant(hal); @@ -48,7 +48,7 @@ void Identity::serialize(BSONObjBuilder* bob) const { invariant(loc); size_t line = loc->line(); bob->append("file"_sd, loc->file_name()); - bob->appendNumber("line"_sd, line); + bob->appendNumber("line"_sd, static_cast<long long>(line)); } Mutex::Mutex(std::shared_ptr<Data> data) : _data{std::move(data)} { |