diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-29 13:35:49 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-29 13:35:49 +0100 |
commit | 5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6 (patch) | |
tree | 2c2e0f123d4bc953e75e9919488c92b78b5c75b4 /crypto/whrlpool | |
parent | Die earlier if hash is NULL. (Coverity IDs 137 & 138). (diff) | |
download | openssl-5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6.tar.xz openssl-5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6.zip |
Fix "possible loss of data" Win64 compiler warnings.
Diffstat (limited to 'crypto/whrlpool')
-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); |