]> granicus.if.org Git - openssl/commitdiff
Fix sign bugs.
authorRichard Levitte <levitte@openssl.org>
Wed, 21 May 2003 14:29:13 +0000 (14:29 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 21 May 2003 14:29:13 +0000 (14:29 +0000)
PR: 621

crypto/asn1/a_strex.c
crypto/bio/b_print.c
crypto/bn/bn_mul.c

index 1def6c6549431b3631a6e240a4d3872ca7a1e150..8abfdfe59804109473cec23ec3559caa93a33a09 100644 (file)
@@ -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 */
index a9e552f24521974e730a34d1e00695d4d7aa035e..2cfc689dd6b4cbe9fa7fd96543a4ef901b2a7585 100644 (file)
@@ -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;
        }
index bfd7f680c9ed855a3b1750e2465bfa186ffef754..4c413b3a5283defb4b850f8df17c4c0a2cfe491f 100644 (file)
@@ -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