diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-02-15 13:59:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-02-15 13:59:14 +0000 |
commit | a21b68f5b06b431fd7f3bf3a064a4d17dd9292a4 (patch) | |
tree | b54bb4fbcd2ac6113d07833dd967f17b80921811 /src/util/container_bloomfilter.c | |
parent | bdeb59bc30331d6fd9f05d56d44a30f281b46195 (diff) | |
download | gnunet-a21b68f5b06b431fd7f3bf3a064a4d17dd9292a4.tar.gz gnunet-a21b68f5b06b431fd7f3bf3a064a4d17dd9292a4.zip |
-big endian
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r-- | src/util/container_bloomfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c index 1a2c876f9..d6c2cb8b9 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c | |||
@@ -348,7 +348,7 @@ typedef int (*BitIterator) (void *cls, | |||
348 | */ | 348 | */ |
349 | static void | 349 | static void |
350 | iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, | 350 | iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, |
351 | BitIterator callback, void *arg, const struct GNUNET_HashCode * key) | 351 | BitIterator callback, void *arg, const struct GNUNET_HashCode *key) |
352 | { | 352 | { |
353 | struct GNUNET_HashCode tmp[2]; | 353 | struct GNUNET_HashCode tmp[2]; |
354 | int bitCount; | 354 | int bitCount; |
@@ -366,7 +366,7 @@ iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, | |||
366 | { | 366 | { |
367 | if (GNUNET_YES != | 367 | if (GNUNET_YES != |
368 | callback (arg, bf, | 368 | callback (arg, bf, |
369 | (((uint32_t *) & tmp[round & 1])[slot]) % | 369 | ntohl ((((uint32_t *) & tmp[round & 1])[slot])) % |
370 | ((bf->bitArraySize * 8LL)))) | 370 | ((bf->bitArraySize * 8LL)))) |
371 | return; | 371 | return; |
372 | slot++; | 372 | slot++; |