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

implicit conversion from 'unsigned long' to 'double'

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: Build, Security
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      Compile with clang-10

      Show
      Compile with clang-10
    • QO 2022-03-21

      src/third_party/mozjs-60/include/mozilla/FastBernoulliTrial.h:368:21: warning: implicit conversion from 'unsigned long' to 'double' changes value from 1844674
      4073709551615 to 18446744073709551616 [-Wimplicit-int-float-conversion]
       if (skipCount < SIZE_MAX)
                             ~ ^~~~~~~~
      
      /usr/include/stdint.h:227:22: note: expanded from macro 'SIZE_MAX'
      # define SIZE_MAX (18446744073709551615UL)
      

            Assignee:
            mohammad.dashti@mongodb.com Mohammad Dashti (Inactive)
            Reporter:
            liangjie.mailbox@qq.com Jiang Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: