X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/8276a9c565bc29afbc6cc120dfde0801c06c2bbd..a90d420cbe87490c844ae422c966e746d3134b07:/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@ --- *