aboutsummaryrefslogtreecommitdiff
path: root/src/revocation
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 08:52:28 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-26 08:52:28 +0200
commit669aa594e6a4d06e2d77cdba5365f6992695f547 (patch)
treee0d90613b2038e17c0c801444a1ad9c20163b59d /src/revocation
parentf5d7449313757e4a7360d7ca48292ecc4647911b (diff)
downloadgnunet-669aa594e6a4d06e2d77cdba5365f6992695f547.tar.gz
gnunet-669aa594e6a4d06e2d77cdba5365f6992695f547.zip
fix bit counting mess
Diffstat (limited to 'src/revocation')
-rw-r--r--src/revocation/revocation_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index 2ae8e2df9..33c67d005 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -395,7 +395,7 @@ count_leading_zeroes (const struct GNUNET_HashCode *hash)
395{ 395{
396 unsigned int hash_count; 396 unsigned int hash_count;
397 hash_count = 0; 397 hash_count = 0;
398 while ((0 == GNUNET_CRYPTO_hash_get_bit (hash, hash_count))) 398 while ((0 == GNUNET_CRYPTO_hash_get_bit_ltr (hash, hash_count)))
399 hash_count++; 399 hash_count++;
400 return hash_count; 400 return hash_count;
401} 401}