Kim van der Riet created PROTON-2038:
----------------------------------------

             Summary: [Python] ubyte (and other unsigned types) can hold 
negative value
                 Key: PROTON-2038
                 URL: https://issues.apache.org/jira/browse/PROTON-2038
             Project: Qpid Proton
          Issue Type: Bug
          Components: python-binding
            Reporter: Kim van der Riet
            Assignee: Kim van der Riet


Python representations of:

proton.ubyte
 proton.ushort
 proton.uint
 proton.ulong

can hold a negative value, even though they should be unsigned.

{{import proton}}
 {{print proton.ubyte(-1)}}
 {{print proton.ushort(-1)}}
 {{print proton.uint(-1)}}
 {{print proton.ulong(-1)}}

results in

{{-1}}
 {{-1}}
 {{-1}}
 {{-1}}

 If a negative value is used in a message in any context, it throws an 
exception within Proton.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to