X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..HEAD:/symm/has160.c diff --git a/symm/has160.c b/symm/has160.c index 483b9fe8..0fbaf488 100644 --- a/symm/has160.c +++ b/symm/has160.c @@ -172,7 +172,7 @@ void has160_set(has160_ctx *ctx, const void *buf, unsigned long count) ctx->e = LOAD32_L(p + 16); ctx->off = 0; ctx->nl = U32(count); - ctx->nh = U32(((count & ~MASK32) >> 16) >> 16); + ctx->nh = U32(((count & ~(unsigned long)MASK32) >> 16) >> 16); } /* --- @has160_hash@ --- *