diff options
author | Bynn Lee <bynn.lee@mongodb.com> | 2021-02-17 22:34:59 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-22 17:28:27 +0000 |
commit | 3307ba57eef2dfff9abe2413e39058ac9451ec04 (patch) | |
tree | 57a7b6a482e927176823a39a671ac9fdd832d062 /src/mongo/idl | |
parent | bfbf776563bf16a6a52ffcc0a69f4686953eb0a1 (diff) | |
download | mongo-3307ba57eef2dfff9abe2413e39058ac9451ec04.tar.gz |
SERVER-43762 tighten the overload set for BSONObjBuilder::appendNumber
Diffstat (limited to 'src/mongo/idl')
-rw-r--r-- | src/mongo/idl/basic_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/idl/basic_types.h b/src/mongo/idl/basic_types.h index 1df3606aecd..35516add195 100644 --- a/src/mongo/idl/basic_types.h +++ b/src/mongo/idl/basic_types.h @@ -179,7 +179,7 @@ public: } auto intVal = stdx::get_if<std::int64_t>(&_w); invariant(intVal); - builder->appendIntOrLL("w", *intVal); + builder->appendNumber("w", static_cast<long long>(*intVal)); } WriteConcernW() : _w{1}, _usedDefault{true} {}; |