summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-05-21 14:29:13 +0000
committerRichard Levitte <levitte@openssl.org>2003-05-21 14:29:13 +0000
commit83743ad039abfd599595aad161054b072b8609bd (patch)
tree73d93d9d0ded83bd8413029c5e7340963b322be1 /crypto
parent163f5b236ca1161ad08d9820bebb25290720613c (diff)
Fix sign bugs.
PR: 621
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/a_strex.c2
-rw-r--r--crypto/bio/b_print.c2
-rw-r--r--crypto/bn/bn_mul.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c
index 1def6c6549..8abfdfe598 100644
--- a/crypto/asn1/a_strex.c
+++ b/crypto/asn1/a_strex.c
@@ -279,7 +279,7 @@ static int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING
* otherwise it is the number of bytes per character
*/
-const static char tag2nbyte[] = {
+const static signed char tag2nbyte[] = {
-1, -1, -1, -1, -1, /* 0-4 */
-1, -1, -1, -1, -1, /* 5-9 */
-1, -1, 0, -1, /* 10-13 */
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c
index a9e552f245..2cfc689dd6 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -836,5 +836,5 @@ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
* had the buffer been large enough.) */
return -1;
else
- return (retlen <= INT_MAX) ? retlen : -1;
+ return (retlen <= INT_MAX) ? (int)retlen : -1;
}
diff --git a/crypto/bn/bn_mul.c b/crypto/bn/bn_mul.c
index bfd7f680c9..4c413b3a52 100644
--- a/crypto/bn/bn_mul.c
+++ b/crypto/bn/bn_mul.c
@@ -549,7 +549,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
int tna, int tnb, BN_ULONG *t)
{
int i,j,n2=n*2;
- unsigned int c1,c2,neg,zero;
+ int c1,c2,neg,zero;
BN_ULONG ln,lo,*p;
# ifdef BN_COUNT