projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19cd0e6
)
fix bit check in hash
author
Martin Schanzenbach
<mschanzenbach@posteo.de>
Mon, 25 May 2020 10:01:23 +0000
(12:01 +0200)
committer
Martin Schanzenbach
<mschanzenbach@posteo.de>
Mon, 25 May 2020 10:01:23 +0000
(12:01 +0200)
src/util/crypto_hash.c
patch
|
blob
|
history
diff --git
a/src/util/crypto_hash.c
b/src/util/crypto_hash.c
index c41c419ffcf1c8b64db741b5a3ac41fdbe41b0ff..4982ba404d596b992aef9233e300238c9dd0b885 100644
(file)
--- 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] & (1
28 >>
(bit & 7))) > 0;
}