summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevitte <levitte>2003-05-21 14:29:18 +0000
committerlevitte <levitte>2003-05-21 14:29:18 +0000
commit0dfa51962c38ab2d7876aa51784932dc2815be0f (patch)
treed51738522c903afcdecf7b3a67487494e3bc1c2b
parentece6e899435e112e3ed62e418fbdeab529bab4e5 (diff)
downloadopenssl-0dfa51962c38ab2d7876aa51784932dc2815be0f.tar.gz
Fix sign bugs.
PR: 621
-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 9a57eba27..91fcbb433 100644
--- a/crypto/asn1/a_strex.c
+++ b/crypto/asn1/a_strex.c
@@ -274,7 +274,7 @@ int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str)
* 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 fa4e350a7..b40d494fa 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -825,5 +825,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 90592718d..f8a5ba7c7 100644
--- a/crypto/bn/bn_mul.c
+++ b/crypto/bn/bn_mul.c
@@ -224,7 +224,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn,
int n, 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