Forráskód Böngészése

Merge pull request #357 from libtom/pr/357-msvc-warning

MSVC fix warning: signed/unsigned mismatch
karel-m 7 éve
szülő
commit
2731b9a873
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);
 
    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;
       }
       if (der_asn1_type_to_identifier_map[id->type] == -1) {