-not -1 when using % instead of &
authorChristian Grothoff <christian@grothoff.org>
Mon, 23 Apr 2012 16:15:09 +0000 (16:15 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 23 Apr 2012 16:15:09 +0000 (16:15 +0000)
src/util/container_bloomfilter.c

index c2f376b4048fd28be52f172baff5d4845bb62d1d..8c226f67d9581eee16d0b186133d8359ef2129c2 100644 (file)
@@ -359,7 +359,7 @@ iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf,
       if (GNUNET_YES !=
           callback (arg, bf,
                     (((uint32_t *) & tmp[round & 1])[slot]) %
-                    ((bf->bitArraySize * 8LL) - 1)))
+                    ((bf->bitArraySize * 8LL))))
         return;
       slot++;
       bitCount--;