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

GeoHash::unhash_fast is wrong on big endian

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2
    • Component/s: Portability
    • Labels:
      None

      Description

      GeoHash::unhash_fast is wrong on big endian (it involves a reinterpret_cast on the bytes of a long long, goes in the wrong order on big endian).

      We should eventually make it correct, but for now simply using unhash_slow will do the job

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: