summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2017-01-15 12:33:45 +0100
committerRichard Levitte <levitte@openssl.org>2017-03-20 22:10:54 +0100
commit9abe889702bdc73f9490f611f54bf9c865702554 (patch)
tree48ee09a1610fad46af1d754c7e44a6b647913232 /crypto/asn1
parente5afec1831248c767be7c5844a88535dabecc01a (diff)
Fix VC warnings about unary minus to an unsigned type.
Reviewed-by: Andy Polyakov <appro@openssl.org> GH: #2230 (partial cherry pick from commit 68d4bcfd0651c7ea5d37ca52abc0d2e6e6b3bd20)
Diffstat (limited to 'crypto/asn1')
-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 efdf574e24..2fd3a903d1 100644
--- a/crypto/asn1/x_long.c
+++ b/crypto/asn1/x_long.c
@@ -126,7 +126,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);