diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2017-01-15 12:33:45 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-03-20 22:10:54 +0100 |
commit | 9abe889702bdc73f9490f611f54bf9c865702554 (patch) | |
tree | 48ee09a1610fad46af1d754c7e44a6b647913232 | |
parent | e5afec1831248c767be7c5844a88535dabecc01a (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)
-rw-r--r-- | crypto/asn1/x_long.c | 2 |
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); |