projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix VC warnings about unary minus to an unsigned type.
[oweals/openssl.git]
/
crypto
/
asn1
/
x_long.c
diff --git
a/crypto/asn1/x_long.c
b/crypto/asn1/x_long.c
index e86e4c72c7ce498e222cd16d7f5680d45a021410..c2844713cf1e3d0582925bfe23ad3d66294c9496 100644
(file)
--- 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);