EndianUtils.readSwappedUnsignedInteger() may return a negative number
---------------------------------------------------------------------

                 Key: IO-117
                 URL: https://issues.apache.org/jira/browse/IO-117
             Project: Commons IO
          Issue Type: Bug
    Affects Versions: 1.3.1
            Reporter: Hiroshi Ikeda


Methods about reading unsigned-integer in class EndianUtils may return a 
negative number, due to casting int to long.
Calculations with operator & etc. are under integer in these methods so its 
results are integer,
then implicit casting the results to long keeps its positive/negative sign.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to