~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
/
rmd128.c
diff --git
a/symm/rmd128.c
b/symm/rmd128.c
index
85b6c33
..
606d0e5
100644
(file)
--- a/
symm/rmd128.c
+++ b/
symm/rmd128.c
@@
-284,7
+284,7
@@
void rmd128_set(rmd128_ctx *ctx, const void *buf, unsigned long count)
ctx->d = LOAD32_L(p + 12);
ctx->off = 0;
ctx->nl = U32(count);
- ctx->nh = U32(((count & ~MASK32) >> 16) >> 16);
+ ctx->nh = U32(((count & ~
(unsigned long)
MASK32) >> 16) >> 16);
}
/* --- @rmd128_hash@ --- *