aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/x_long.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2017-01-15 12:33:45 +0100
committerKurt Roeckx <kurt@roeckx.be>2017-01-15 22:21:07 +0100
commit68d4bcfd0651c7ea5d37ca52abc0d2e6e6b3bd20 (patch)
treed44e8b412433c72605531ca6a93a59c9c70d1528 /crypto/asn1/x_long.c
parent244d7b288f2b9ab7f6a2dbf068eccd6e20d9eef6 (diff)
downloadopenssl-68d4bcfd0651c7ea5d37ca52abc0d2e6e6b3bd20.tar.gz
Fix VC warnings about unary minus to an unsigned type.
Reviewed-by: Andy Polyakov <appro@openssl.org> GH: #2230
Diffstat (limited to 'crypto/asn1/x_long.c')
-rw-r--r--crypto/asn1/x_long.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/x_long.c b/crypto/asn1/x_long.c
index e86e4c72c7..c2844713cf 100644
--- a/crypto/asn1/x_long.c
+++ b/crypto/asn1/x_long.c
@@ -76,7 +76,7 @@ static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype,
* set.
*/
if (ltmp < 0)
- utmp = -(unsigned long)ltmp - 1;
+ utmp = 0 - (unsigned long)ltmp - 1;
else
utmp = ltmp;
clen = BN_num_bits_word(utmp);