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

Checksum::gen should use signed char

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Platforms E (01/08/16)

    Description

      On ppc64, char defaults to unsigned so code like the following returns a different result then x64 where char defaults to signed.

              c = (c << 8) | ((const char*)buf)[i];
      

      Attachments

        Issue Links

          Activity

            People

              mark.benvenuto@mongodb.com Mark Benvenuto
              mark.benvenuto@mongodb.com Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: