harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822209 - /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java
Date Tue, 06 Oct 2009 10:49:13 GMT
Author: tellison
Date: Tue Oct  6 10:49:13 2009
New Revision: 822209

URL: http://svn.apache.org/viewvc?rev=822209&view=rev
Log:
Fix bug: cant shift ints that far.

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java?rev=822209&r1=822208&r2=822209&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java
Tue Oct  6 10:49:13 2009
@@ -94,10 +94,10 @@
      * Reads and returns uint64 value.
      */
     public long readUint64() throws IOException {
-        return (read() << 56) | (read() << 48)
-              | (read() << 40) | (read() << 32)
-              | (read() << 24) | (read() << 16)
-              | (read() << 8) | (read() & 0x00FF);
+        return ((long) read() << 56) | ((long) read() << 48)
+                | ((long) read() << 40) | ((long) read() << 32)
+                | (read() << 24) | (read() << 16) | (read() << 8)
+                | (read() & 0x00FF);
     }
 
     /**



Mime
View raw message