diff options
-rw-r--r-- | src/mongo/db/ftdc/file_writer_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/ftdc/file_writer_test.cpp b/src/mongo/db/ftdc/file_writer_test.cpp index 14fd205ad0a..138d7c850f6 100644 --- a/src/mongo/db/ftdc/file_writer_test.cpp +++ b/src/mongo/db/ftdc/file_writer_test.cpp @@ -326,7 +326,9 @@ TEST(FTDCFileTest, TestLargeDocuments) { BSONObjBuilder b; b.append("name", "joe"); for (size_t k = 0; k < 200; k++) { - b.appendNumber("num", static_cast<long long int>(i * j + 5000 - (sin(k) * 100))); + b.appendNumber( + "num", + static_cast<long long int>(i * j + 5000 - (sin(static_cast<double>(k)) * 100))); } c.addSample(b.obj()); |