chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
progs/..., symm/...: Fix 32-bit right-shift idiom.
[catacomb]
/
symm
/
has160.c
diff --git
a/symm/has160.c
b/symm/has160.c
index 483b9fe8a089f146fa915b233d0d40e7a2d47023..0fbaf48886449d4b1d5e8c5e91ff8b946406a338 100644
(file)
--- a/
symm/has160.c
+++ b/
symm/has160.c
@@
-172,7
+172,7
@@
void has160_set(has160_ctx *ctx, const void *buf, unsigned long count)
ctx->e = LOAD32_L(p + 16);
ctx->off = 0;
ctx->nl = U32(count);
- ctx->nh = U32(((count & ~MASK32) >> 16) >> 16);
+ ctx->nh = U32(((count & ~
(unsigned long)
MASK32) >> 16) >> 16);
}
/* --- @has160_hash@ --- *