You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/05/06 01:32:48 UTC

svn commit: r535573 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java

Author: kahatlen
Date: Sat May  5 16:32:47 2007
New Revision: 535573

URL: http://svn.apache.org/viewvc?view=rev&rev=535573
Log:
Fixed inaccuracies in comments.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java?view=diff&rev=535573&r1=535572&r2=535573
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java Sat May  5 16:32:47 2007
@@ -691,14 +691,14 @@
             }
             else
             {
-                // top 7 bits of 4 byte value is stored in int_value, we also 
+                // top 7 bits of 8 byte value is stored in int_value, we also
                 // know that the 0x80 bit was set, so need to mask off the 
                 // sign extension from the 1st byte to int conversion.  Need to
                 // mask the bytes from the next 7 bytes data[pos + 1,2,...] to 
                 // account for possible sign extension.
                 //
 
-                // value stored in 8 bytes.  only use low 6 bits from 1st byte.
+                // value stored in 8 bytes.  only use low 7 bits from 1st byte.
                 long_value = 
                     (((long) (int_value   & 0x7f)) << 56) |
                     (((long) (data[pos++] & 0xff)) << 48) |