Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1868

[Python] pn_handle_t binding does not reliably work with Win64

    XMLWordPrintableJSON

Details

    Description

      pn_handle_t is treated by swig as identical to uintptr_t which is defined as unsigned long. However under Win64 this is a 32 bit int which is not long enough to fit all 64 bit addresses.

      The swig code should be changed to either define uintptr_t as unsigned long long for 64 bit builds which is always 64 bits (on all platforms).

      Or we should use a custom typemap for pn_handle_t which uses PyLong_AsVoidPtr & PyLong_FromVoidPtr.

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            astitcher Andrew Stitcher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: