Author: toad
Date: 2008-09-04 16:56:06 +0000 (Thu, 04 Sep 2008)
New Revision: 22422

Modified:
   trunk/freenet/src/freenet/support/Fields.java
Log:
bytesToInts was broken, ouch!


Modified: trunk/freenet/src/freenet/support/Fields.java
===================================================================
--- trunk/freenet/src/freenet/support/Fields.java       2008-09-04 16:56:04 UTC 
(rev 22421)
+++ trunk/freenet/src/freenet/support/Fields.java       2008-09-04 16:56:06 UTC 
(rev 22422)
@@ -538,7 +538,7 @@
                for(int i = 0; i < ints.length; i++) {
                        int x = 0;
                        for(int j = 3; j >= 0; j--) {
-                               int y = (buf[j + offset] & 0xff);
+                               int y = (buf[j + offset + i * 4] & 0xff);
                                x = (x << 8) | y;
                        }
                        ints[i] = x;


Reply via email to