You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Darryl L. Pierce (JIRA)" <ji...@apache.org> on 2014/12/04 21:35:13 UTC

[jira] [Created] (PROTON-765) 64-bit values are anot being properly marshalled in Ruby on 32-bit systems

Darryl L. Pierce created PROTON-765:
---------------------------------------

             Summary: 64-bit values are anot being properly marshalled in Ruby on 32-bit systems
                 Key: PROTON-765
                 URL: https://issues.apache.org/jira/browse/PROTON-765
             Project: Qpid Proton
          Issue Type: Bug
          Components: ruby-binding
    Affects Versions: 0.8
            Reporter: Darryl L. Pierce
            Assignee: Darryl L. Pierce


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)