diff options
Diffstat (limited to 'crypto/whrlpool/wp_dgst.c')
-rw-r--r-- | crypto/whrlpool/wp_dgst.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]<<inpgap)&0xff; if (bitrem) c->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); |