summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/crypto_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c
index c41c419ff..4982ba404 100644
--- a/src/util/crypto_hash.c
+++ b/src/util/crypto_hash.c
@@ -252,7 +252,7 @@ GNUNET_CRYPTO_hash_get_bit (const struct GNUNET_HashCode *code, unsigned int
bit)
{
GNUNET_assert (bit < 8 * sizeof(struct GNUNET_HashCode));
- return (((unsigned char *) code)[bit >> 3] & (1 << (bit & 7))) > 0;
+ return (((unsigned char *) code)[bit >> 3] & (128 >> (bit & 7))) > 0;
}