fix bit counting mess
[oweals/gnunet.git] / src / revocation / revocation_api.c
index 2ae8e2df941381aa08c2cde8c467f9db30e50552..33c67d005554c0fd6d1df70503fe8c7ebf0ce0e2 100644 (file)
@@ -395,7 +395,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;
 }