fix bit counting mess
[oweals/gnunet.git] / src / util / gnunet-scrypt.c
index 70ba48d82d7a6ecebf8ffe34d44f5455a054b08d..9bb766595fa936bf194547a55e86417c7fd21e4d 100644 (file)
@@ -79,7 +79,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;
 }