X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fwhrlpool%2Fwp_dgst.c;h=ee5c5c1bf3a80549ff1ce02f02aa58b98d3aa20e;hp=291991405935bca4a380f8bb609b673290cd5fe9;hb=8d932f6fd7df8a622f3cb998dab1529247158706;hpb=cd346d3e22c2821333e28b3ab33e5960efdd0947 diff --git a/crypto/whrlpool/wp_dgst.c b/crypto/whrlpool/wp_dgst.c index 2919914059..ee5c5c1bf3 100644 --- a/crypto/whrlpool/wp_dgst.c +++ b/crypto/whrlpool/wp_dgst.c @@ -130,7 +130,7 @@ void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *_inp,size_t bits) else { memcpy(c->data+byteoff,inp,bits/8); - bitoff += bits; + bitoff += (unsigned int)bits; bits = 0; } c->bitoff = bitoff; @@ -197,7 +197,7 @@ void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *_inp,size_t bits) b = (inp[0]<data[byteoff++] |= b>>bitrem; else c->data[byteoff++] = b; - bitoff += bits; + bitoff += (unsigned int)bits; if (bitoff==WHIRLPOOL_BBLOCK) { whirlpool_block(c,c->data,1);