From 80863bfc53c6ae353bf8c35a3d5f51d8e47bd2bb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Apr 2012 16:15:09 +0000 Subject: [PATCH] -not -1 when using % instead of & --- src/util/container_bloomfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, if (GNUNET_YES != callback (arg, bf, (((uint32_t *) & tmp[round & 1])[slot]) % - ((bf->bitArraySize * 8LL) - 1))) + ((bf->bitArraySize * 8LL)))) return; slot++; bitCount--; -- 2.25.1