~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rand/rand.c: More dynamic assertions converted to use `STATIC_ASSERT'.
[catacomb]
/
symm
/
whirlpool.c
diff --git
a/symm/whirlpool.c
b/symm/whirlpool.c
index
708e3fc
..
f22a366
100644
(file)
--- a/
symm/whirlpool.c
+++ b/
symm/whirlpool.c
@@
-206,7
+206,7
@@
void whirlpool_set(whirlpool_ctx *ctx, const void *buf, unsigned long count)
}
ctx->off = 0;
ctx->nl = U32(count);
- ctx->nh = U32(((count & ~MASK32) >> 16) >> 16);
+ ctx->nh = U32(((count & ~
(unsigned long)
MASK32) >> 16) >> 16);
}
/* --- @whirlpool_hash@, @whirlpool256_hash@ --- *