Browse Source

fix warning: signed/unsigned mismatch

Karel Miko 7 years ago
parent
commit
1871c5dff4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pk/asn1/der/general/der_encode_asn1_identifier.c

+ 1 - 1
src/pk/asn1/der/general/der_encode_asn1_identifier.c

@@ -30,7 +30,7 @@ int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsi
    LTC_ARGCHK(outlen != NULL);
    LTC_ARGCHK(outlen != NULL);
 
 
    if (id->type != LTC_ASN1_CUSTOM_TYPE) {
    if (id->type != LTC_ASN1_CUSTOM_TYPE) {
-      if (id->type >= der_asn1_type_to_identifier_map_sz) {
+      if ((unsigned)id->type >= der_asn1_type_to_identifier_map_sz) {
          return CRYPT_INVALID_ARG;
          return CRYPT_INVALID_ARG;
       }
       }
       if (der_asn1_type_to_identifier_map[id->type] == -1) {
       if (der_asn1_type_to_identifier_map[id->type] == -1) {