summaryrefslogtreecommitdiff
path: root/src/mongo/util/intrusive_counter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/intrusive_counter.cpp')
-rw-r--r--src/mongo/util/intrusive_counter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/intrusive_counter.cpp b/src/mongo/util/intrusive_counter.cpp
index 8a10384cfb3..75c3b0f0acc 100644
--- a/src/mongo/util/intrusive_counter.cpp
+++ b/src/mongo/util/intrusive_counter.cpp
@@ -39,7 +39,8 @@ using namespace mongoutils;
intrusive_ptr<const RCString> RCString::create(StringData s) {
uassert(16493,
str::stream() << "Tried to create string longer than "
- << (BSONObjMaxUserSize / 1024 / 1024) << "MB",
+ << (BSONObjMaxUserSize / 1024 / 1024)
+ << "MB",
s.size() < static_cast<size_t>(BSONObjMaxUserSize));
const size_t sizeWithNUL = s.size() + 1;