Skip to content

Commit d4180e9

Browse files
authored
Fix comparison of integers of different signs warning when compiling with BoringSSL. (#2367)
1 parent 8d225af commit d4180e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15341,7 +15341,7 @@ inline bool get_cert_sans(cert_t cert, std::vector<SanEntry> &sans) {
1534115341
if (!names) return true; // No SANs is valid
1534215342

1534315343
auto count = sk_GENERAL_NAME_num(names);
15344-
for (int i = 0; i < count; i++) {
15344+
for (decltype(count) i = 0; i < count; i++) {
1534515345
auto gen = sk_GENERAL_NAME_value(names, i);
1534615346
if (!gen) continue;
1534715347

0 commit comments

Comments
 (0)