Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7273

documenttests.cpp:808 warning about int64->double truncation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • Testing Infrastructure
    • None
    • ALL

    Description

      The MSVC compiler emits a warning about precision loss when converting int64_t(0x8fffffffffffffffLL) to a double. We'd like our compiles to be warning-free. The correct solution here is probably to suppress the warning on Windows, since we're intentionally trying to lose precision for this test.

      Attachments

        Activity

          People

            aaron Aaron Staple
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: