aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_bloomfilter.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-23 16:15:09 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-23 16:15:09 +0000
commit80863bfc53c6ae353bf8c35a3d5f51d8e47bd2bb (patch)
treebe4eafbed56e57e40959146d7b1ecf81c0495009 /src/util/container_bloomfilter.c
parent60a75ad519d3d0740198290b2477ebd3f0750e8f (diff)
downloadgnunet-80863bfc53c6ae353bf8c35a3d5f51d8e47bd2bb.tar.gz
gnunet-80863bfc53c6ae353bf8c35a3d5f51d8e47bd2bb.zip
-not -1 when using % instead of &
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r--src/util/container_bloomfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c
index c2f376b40..8c226f67d 100644
--- a/src/util/container_bloomfilter.c
+++ b/src/util/container_bloomfilter.c
@@ -359,7 +359,7 @@ iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf,
359 if (GNUNET_YES != 359 if (GNUNET_YES !=
360 callback (arg, bf, 360 callback (arg, bf,
361 (((uint32_t *) & tmp[round & 1])[slot]) % 361 (((uint32_t *) & tmp[round & 1])[slot]) %
362 ((bf->bitArraySize * 8LL) - 1))) 362 ((bf->bitArraySize * 8LL))))
363 return; 363 return;
364 slot++; 364 slot++;
365 bitCount--; 365 bitCount--;