summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_test.cpp
diff options
context:
space:
mode:
authorJustin Seyster <justin.seyster@mongodb.com>2018-02-15 17:58:05 -0500
committerJustin Seyster <justin.seyster@mongodb.com>2018-02-16 13:05:17 -0500
commitade1ebcb01606e11f2983031792db1cec95755cf (patch)
treeee22769aa8a345eaa409a48bb92c7eddd2a42f69 /src/mongo/db/pipeline/expression_test.cpp
parent0b879318cf23418cf9e0a27b399e41c468fb6662 (diff)
downloadmongo-ade1ebcb01606e11f2983031792db1cec95755cf.tar.gz
SERVER-33360 Ambiguous constructor call in ConvertNumericToDecimal
Diffstat (limited to 'src/mongo/db/pipeline/expression_test.cpp')
-rw-r--r--src/mongo/db/pipeline/expression_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/expression_test.cpp b/src/mongo/db/pipeline/expression_test.cpp
index 34ee1a15c06..e38bc4ed346 100644
--- a/src/mongo/db/pipeline/expression_test.cpp
+++ b/src/mongo/db/pipeline/expression_test.cpp
@@ -5827,8 +5827,9 @@ TEST_F(ExpressionConvertTest, ConvertNumericToDecimal) {
ASSERT_VALUE_CONTENTS_AND_TYPE(
convertExp->evaluate(intInput), Decimal128(1), BSONType::NumberDecimal);
- ASSERT_VALUE_CONTENTS_AND_TYPE(
- convertExp->evaluate(longInput), Decimal128(0xf00000000), BSONType::NumberDecimal);
+ ASSERT_VALUE_CONTENTS_AND_TYPE(convertExp->evaluate(longInput),
+ Decimal128(int64_t{0xf00000000LL}),
+ BSONType::NumberDecimal);
ASSERT_VALUE_CONTENTS_AND_TYPE(
convertExp->evaluate(doubleInput), Decimal128("0.1"), BSONType::NumberDecimal);