X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/2921991916ba2362d054111a0d041ff170c899c1..e91d142c49f0ff129a087f2b66380bd7c5da0617:/symm/md4.c diff --git a/symm/md4.c b/symm/md4.c index eee5d6b3..15fb7503 100644 --- a/symm/md4.c +++ b/symm/md4.c @@ -185,7 +185,7 @@ void md4_set(md4_ctx *ctx, const void *buf, unsigned long count) ctx->d = LOAD32_L(p + 12); ctx->off = 0; ctx->nl = U32(count); - ctx->nh = U32(((count & ~MASK32) >> 16) >> 16); + ctx->nh = U32(((count & ~(unsigned long)MASK32) >> 16) >> 16); } /* --- @md4_hash@ --- *