summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bson_obj_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bson_obj_test.cpp')
-rw-r--r--src/mongo/bson/bson_obj_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/bson_obj_test.cpp b/src/mongo/bson/bson_obj_test.cpp
index 73621671aa4..7e2288cce4f 100644
--- a/src/mongo/bson/bson_obj_test.cpp
+++ b/src/mongo/bson/bson_obj_test.cpp
@@ -291,9 +291,9 @@ TEST(BSONObjCompare, NumberDecimalCompareLong) {
if (Decimal128::enabled) {
ASSERT_EQ(BSON("" << Decimal128(0.0)), BSON("" << 0ll));
ASSERT_EQ(BSON("" << Decimal128(502.0)), BSON("" << 502ll));
- ASSERT_EQ(BSON("" << Decimal128(std::numeric_limits<long long>::max())),
+ ASSERT_EQ(BSON("" << Decimal128(std::numeric_limits<int64_t>::max())),
BSON("" << std::numeric_limits<long long>::max()));
- ASSERT_EQ(BSON("" << Decimal128(-std::numeric_limits<long long>::max())),
+ ASSERT_EQ(BSON("" << Decimal128(-std::numeric_limits<int64_t>::max())),
BSON("" << -std::numeric_limits<long long>::max()));
ASSERT_LT(BSON("" << Decimal128::kNegativeNaN),