summaryrefslogtreecommitdiffstats
path: root/crypto/modes/cfb128.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-12-29 12:35:49 +0000
committerAndy Polyakov <appro@openssl.org>2008-12-29 12:35:49 +0000
commit5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6 (patch)
tree2c2e0f123d4bc953e75e9919488c92b78b5c75b4 /crypto/modes/cfb128.c
parent85e878f224f16d21c09b1916c72ba0458335df7b (diff)
Fix "possible loss of data" Win64 compiler warnings.
Diffstat (limited to 'crypto/modes/cfb128.c')
-rw-r--r--crypto/modes/cfb128.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/modes/cfb128.c b/crypto/modes/cfb128.c
index 9ba4984718..b6d1e886b9 100644
--- a/crypto/modes/cfb128.c
+++ b/crypto/modes/cfb128.c
@@ -229,7 +229,8 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
{
c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0;
cfbr_encrypt_block(c,d,1,key,ivec,enc,block);
- out[n/8]=(out[n/8]&~(1 << (7-n%8)))|((d[0]&0x80) >> (n%8));
+ out[n/8]=(out[n/8]&~(1 << (unsigned int)(7-n%8))) |
+ ((d[0]&0x80) >> (unsigned int)(n%8));
}
}