X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..8f2287ef5c05d496fcb9b012629af007fe56f897:/symm/rmd256.c diff --git a/symm/rmd256.c b/symm/rmd256.c index 99648f5f..0a03065b 100644 --- a/symm/rmd256.c +++ b/symm/rmd256.c @@ -294,7 +294,7 @@ void rmd256_set(rmd256_ctx *ctx, const void *buf, unsigned long count) ctx->D = LOAD32_L(p + 28); ctx->off = 0; ctx->nl = U32(count); - ctx->nh = U32(((count & ~MASK32) >> 16) >> 16); + ctx->nh = U32(((count & ~(unsigned long)MASK32) >> 16) >> 16); } /* --- @rmd256_hash@ --- *