gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26138 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r26138 - gnunet/src/util
Date: Fri, 15 Feb 2013 14:59:15 +0100

Author: grothoff
Date: 2013-02-15 14:59:14 +0100 (Fri, 15 Feb 2013)
New Revision: 26138

Modified:
   gnunet/src/util/container_bloomfilter.c
Log:
-big endian

Modified: gnunet/src/util/container_bloomfilter.c
===================================================================
--- gnunet/src/util/container_bloomfilter.c     2013-02-15 13:58:52 UTC (rev 
26137)
+++ gnunet/src/util/container_bloomfilter.c     2013-02-15 13:59:14 UTC (rev 
26138)
@@ -348,7 +348,7 @@
  */
 static void
 iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf,
-             BitIterator callback, void *arg, const struct GNUNET_HashCode * 
key)
+             BitIterator callback, void *arg, const struct GNUNET_HashCode 
*key)
 {
   struct GNUNET_HashCode tmp[2];
   int bitCount;
@@ -366,7 +366,7 @@
     {
       if (GNUNET_YES !=
           callback (arg, bf,
-                    (((uint32_t *) & tmp[round & 1])[slot]) %
+                    ntohl ((((uint32_t *) & tmp[round & 1])[slot])) %
                     ((bf->bitArraySize * 8LL))))
         return;
       slot++;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]