db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r535573 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/ArrayInputStream.java
Date Sat, 05 May 2007 23:32:48 GMT
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) |



Mime
View raw message