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

Checksum::gen should use signed char

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

      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];
      

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

              Created:
              Updated:
              Resolved: