summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorBynn Lee <bynn.lee@mongodb.com>2021-02-17 22:34:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-22 17:28:27 +0000
commit3307ba57eef2dfff9abe2413e39058ac9451ec04 (patch)
tree57a7b6a482e927176823a39a671ac9fdd832d062 /src/mongo/idl
parentbfbf776563bf16a6a52ffcc0a69f4686953eb0a1 (diff)
downloadmongo-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.h2
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} {};