summaryrefslogtreecommitdiffstats
path: root/crypto/modes/xts128.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-21 14:54:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-21 14:54:33 +0000
commit84ed90f88b0542b85a9aa50723c7787cb3bb4bd5 (patch)
tree05fdbb07ae6d33eea8bdb1297bacbd0150e88136 /crypto/modes/xts128.c
parent065d050e7a037b5c0c3918c4e97db7807619f547 (diff)
Fix WIN32 warning.
Diffstat (limited to 'crypto/modes/xts128.c')
-rw-r--r--crypto/modes/xts128.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/modes/xts128.c b/crypto/modes/xts128.c
index 6859ab65d5..ebdc5ea649 100644
--- a/crypto/modes/xts128.c
+++ b/crypto/modes/xts128.c
@@ -102,7 +102,7 @@ int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16],
unsigned int carry,res;
res = 0x87&(((int)tweak.d[3])>>31);
- carry = tweak.u[0]>>63;
+ carry = (unsigned int)(tweak.u[0]>>63);
tweak.u[0] = (tweak.u[0]<<1)^res;
tweak.u[1] = (tweak.u[1]<<1)|carry;
}
@@ -137,7 +137,7 @@ int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16],
unsigned int carry,res;
res = 0x87&(((int)tweak.d[3])>>31);
- carry = tweak.u[0]>>63;
+ carry = (unsigned int)(tweak.u[0]>>63);
tweak1.u[0] = (tweak.u[0]<<1)^res;
tweak1.u[1] = (tweak.u[1]<<1)|carry;
}