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

implicit conversion from 'long long' to 'double' in window_function_sum.cpp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-08-23

      Reported by Xcode 12.

      Similar issue reported in SERVER-48079 and SERVER-SERVER-48076.

      Function added in SERVER-53713 to support 5.0 aggregation functionality.

      src/mongo/db/pipeline/window_function/window_function_sum.cpp:70:27: error: implicit conversion from 'std::__1::numeric_limits<long long>::type' (aka 'long long') to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion]
              val.getDouble() < std::numeric_limits<long long>::max()) {  // Narrow double to integral
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: