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

64-bit values are not being properly marshalled in Ruby on 32-bit systems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.8
    • proton-0.9
    • ruby-binding
    • None

    Description

      On 32-bit Linux using both Ruby 1.8 and 2.0 I see the following when setting a Bignum value:

      3: 2) A data object can hold a decimal64
      3: Failure/Error: @data.decimal64 = value
      3: RangeError:
      3: bignum too big to convert into `unsigned long'
      3: # ./lib/qpid_proton/data.rb:633:in `pn_data_put_decimal64'
      3: # ./lib/qpid_proton/data.rb:633:in `decimal64='
      3: # ./spec/qpid/proton/data_spec.rb:318:in `block (2 levels) in <module:Proton>'

      It seems that a >32-bit value can't be held on a 32-bit system in Proton.

      Attachments

        Activity

          People

            mcpierce Darryl Pierce
            mcpierce Darryl Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: