Browse Source

removed gcc compiler warnings

Steffen Jaeckel 15 years ago
parent
commit
c3018d69d0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pk/asn1/der/sequence/der_decode_sequence_ex.c

+ 3 - 3
src/pk/asn1/der/sequence/der_decode_sequence_ex.c

@@ -76,13 +76,13 @@ int der_decode_sequence_ex(const unsigned char *in, unsigned long  inlen,
   }
   }
 
 
    /* mark all as unused */
    /* mark all as unused */
-   for (i = 0; i < outlen; i++) {
+   for (i = 0; i < (int)outlen; i++) {
        list[i].used = 0;
        list[i].used = 0;
    }     
    }     
 
 
   /* ok read data */
   /* ok read data */
    inlen = blksize;
    inlen = blksize;
-   for (i = 0; i < outlen; i++) {
+   for (i = 0; i < (int)outlen; i++) {
        z    = 0;
        z    = 0;
        type = list[i].type;
        type = list[i].type;
        size = list[i].size;
        size = list[i].size;
@@ -268,7 +268,7 @@ int der_decode_sequence_ex(const unsigned char *in, unsigned long  inlen,
        }          
        }          
    }
    }
      
      
-   for (i = 0; i < outlen; i++) {
+   for (i = 0; i < (int)outlen; i++) {
       if (list[i].used == 0) {
       if (list[i].used == 0) {
           err = CRYPT_INVALID_PACKET;
           err = CRYPT_INVALID_PACKET;
           goto LBL_ERR;
           goto LBL_ERR;