Author: toad
Date: 2007-11-28 20:19:13 +0000 (Wed, 28 Nov 2007)
New Revision: 16043

Modified:
   trunk/freenet/src/freenet/support/Fields.java
Log:
Last commit makes no practical difference but makes the logic more obvious.
This one likewise.

Modified: trunk/freenet/src/freenet/support/Fields.java
===================================================================
--- trunk/freenet/src/freenet/support/Fields.java       2007-11-28 20:15:00 UTC 
(rev 16042)
+++ trunk/freenet/src/freenet/support/Fields.java       2007-11-28 20:19:13 UTC 
(rev 16043)
@@ -475,7 +475,7 @@
             long x = longs[i];
             for(int j=0;j<8;j++) {
                 buf[i*8+j] = (byte)x;
-                x >>= 8;
+                x >>>= 8;
             }
         }
         return buf;
@@ -553,7 +553,7 @@
         byte[] buf = new byte[8];
         for(int j=0;j<8;j++) {
             buf[j] = (byte)x;
-            x >>= 8;
+            x >>>= 8;
         }
         return buf;
     }
@@ -564,7 +564,7 @@
             long x = ints[i];
             for(int j=0;j<4;j++) {
                 buf[i*4+j] = (byte)x;
-                x >>= 8;
+                x >>>= 8;
             }
         }
         return buf;


Reply via email to