X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/8276a9c565bc29afbc6cc120dfde0801c06c2bbd..59aa39f8a0065d8bc3b2a353706f41f0dd20be12:/symm/whirlpool.c diff --git a/symm/whirlpool.c b/symm/whirlpool.c index 708e3fce..f22a366a 100644 --- 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@ --- *