Author: j16sdiz
Date: 2008-07-31 10:58:52 +0000 (Thu, 31 Jul 2008)
New Revision: 21520

Modified:
   branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java
Log:
doh!

Modified: 
branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java
===================================================================
--- 
branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java   
    2008-07-31 00:52:00 UTC (rev 21519)
+++ 
branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java   
    2008-07-31 10:58:52 UTC (rev 21520)
@@ -63,7 +63,7 @@
                b &= ~(3 << offset % 4 * 2); // unset bit
                b |= (v + 1) << offset % 4 * 2; // set bit

-               filter.put(offset / 8, b);
+               filter.put(offset / 8 * 2, b);
        }

        @Override
@@ -77,7 +77,7 @@
                b &= ~(3 << offset % 4 * 2); // unset bit
                b |= (v - 1) << offset % 4 * 2; // set bit

-               filter.put(offset / 8, b);
+               filter.put(offset / 8 * 2, b);
        }

        @Override


Reply via email to