fix bit counting mess
[oweals/gnunet.git] / src / nse / gnunet-service-nse.c
index 411f533a505d32b8d311339277a88ba3c40e1b69..461d55a7f2dd1757e8b302346e6c54c5e16304e9 100644 (file)
@@ -780,7 +780,7 @@ count_leading_zeroes (const struct GNUNET_HashCode *hash)
   unsigned int hash_count;
 
   hash_count = 0;
-  while (0 == GNUNET_CRYPTO_hash_get_bit (hash, hash_count))
+  while (0 == GNUNET_CRYPTO_hash_get_bit_ltr (hash, hash_count))
     hash_count++;
   return hash_count;
 }