commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io EndianUtils.java
Date Fri, 02 Jan 2004 07:43:34 GMT
bayard      2004/01/01 23:43:34

  Modified:    io/src/java/org/apache/commons/io EndianUtils.java
  Log:
  removed unnecessary line
  
  Revision  Changes    Path
  1.10      +3 -3      jakarta-commons-sandbox/io/src/java/org/apache/commons/io/EndianUtils.java
  
  Index: EndianUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/io/src/java/org/apache/commons/io/EndianUtils.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- EndianUtils.java	30 Dec 2003 06:52:49 -0000	1.9
  +++ EndianUtils.java	2 Jan 2004 07:43:34 -0000	1.10
  @@ -250,8 +250,8 @@
        */
       public static long readSwappedLong( byte[] data, int offset )
       {
  -        long ln = (long)( ( ( data[ offset + 0 ] & 0xff ) << 0 ) );
  -        long low = (long)( ( ( data[ offset + 0 ] & 0xff ) << 0 ) +
  +        long low = (long)( 
  +            ( ( data[ offset + 0 ] & 0xff ) << 0 ) +
               ( ( data[ offset + 1 ] & 0xff ) << 8 ) +
               ( ( data[ offset + 2 ] & 0xff ) << 16 ) +
               ( ( data[ offset + 3 ] & 0xff ) << 24 ) );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message