Procházet zdrojové kódy

Fix comparison of integers of different signs warning when compiling with BoringSSL. (#2367)

Kostia Sokolovskyi před 1 měsícem
rodič
revize
d4180e923f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -15341,7 +15341,7 @@ inline bool get_cert_sans(cert_t cert, std::vector<SanEntry> &sans) {
   if (!names) return true; // No SANs is valid
   if (!names) return true; // No SANs is valid
 
 
   auto count = sk_GENERAL_NAME_num(names);
   auto count = sk_GENERAL_NAME_num(names);
-  for (int i = 0; i < count; i++) {
+  for (decltype(count) i = 0; i < count; i++) {
     auto gen = sk_GENERAL_NAME_value(names, i);
     auto gen = sk_GENERAL_NAME_value(names, i);
     if (!gen) continue;
     if (!gen) continue;