summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorKonstantin Trushin <konstantin.trushin@percona.com>2022-08-05 12:41:39 +0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-08 20:07:01 +0000
commitda1b994b05bba3b15cadd5138fc3dcd3687c7f91 (patch)
treed2ff8133531d8a552e0b2bac2b6f090ec22f3b9c /src/mongo
parenta8279e40be9629a69609ec6f43ed849686519801 (diff)
downloadmongo-da1b994b05bba3b15cadd5138fc3dcd3687c7f91.tar.gz
SERVER-68579: Fix the compilation warning
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/crypto/fle_crypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/crypto/fle_crypto.cpp b/src/mongo/crypto/fle_crypto.cpp
index 32f16824a11..980c6464edf 100644
--- a/src/mongo/crypto/fle_crypto.cpp
+++ b/src/mongo/crypto/fle_crypto.cpp
@@ -1043,7 +1043,7 @@ BSONObj toBSON(BSONType type, ConstDataRange cdr) {
uassert(ErrorCodes::BadValue,
"invalid decryption value",
- docLength < std::numeric_limits<int32_t>::max());
+ docLength < static_cast<size_t>(std::numeric_limits<int32_t>::max()));
builder.appendNum(static_cast<uint32_t>(docLength));
builder.appendChar(static_cast<uint8_t>(type));