diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2019-03-20 18:17:56 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2019-03-21 15:16:35 -0400 |
commit | a51f50784adaa0c86ace974247d4d0c088152f8e (patch) | |
tree | 477bb6578688b0241e76c57a28c59ed45a8d30e5 /src/mongo/db/pipeline | |
parent | 8284b68fd265df73ab60f15f97ae3ada145f49d2 (diff) | |
download | mongo-a51f50784adaa0c86ace974247d4d0c088152f8e.tar.gz |
SERVER-40153 remove overflowing constants that MSVC warns about
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r-- | src/mongo/db/pipeline/expression_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/expression_test.cpp b/src/mongo/db/pipeline/expression_test.cpp index 2cdc6bb5a30..a5077b0b952 100644 --- a/src/mongo/db/pipeline/expression_test.cpp +++ b/src/mongo/db/pipeline/expression_test.cpp @@ -6013,7 +6013,7 @@ TEST(ExpressionRegexFindAllTest, FailureCase) { TEST(ExpressionRegexFindAllTest, InvalidUTF8InInput) { std::string inputField = "1234 "; // Append an invalid UTF-8 character. - inputField += static_cast<char>(0xE5); + inputField += '\xe5'; inputField += " 1234"; Value input(fromjson("{input: '" + inputField + "', regex: '[0-9]'}")); intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); @@ -6026,7 +6026,7 @@ TEST(ExpressionRegexFindAllTest, InvalidUTF8InInput) { TEST(ExpressionRegexFindAllTest, InvalidUTF8InRegex) { std::string regexField = "1234 "; // Append an invalid UTF-8 character. - regexField += static_cast<char>(0xE5); + regexField += '\xe5'; Value input(fromjson("{input: '123456', regex: '" + regexField + "'}")); intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); ExpressionRegexFindAll regexF(expCtx); |