From 3d47a5143024d73830d1e28c4978c7aeb8ad67bd Mon Sep 17 00:00:00 2001 From: rundong08 Date: Mon, 29 Jun 2020 18:19:56 -0700 Subject: [PATCH] Fixed comparison of integers of different signs. (#544) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index f160828..53be1bc 100644 --- a/httplib.h +++ b/httplib.h @@ -5671,7 +5671,7 @@ SSLClient::verify_host_with_subject_alt_name(X509 *server_cert) const { auto count = sk_GENERAL_NAME_num(alt_names); - for (auto i = 0; i < count && !dsn_matched; i++) { + for (decltype(count) i = 0; i < count && !dsn_matched; i++) { auto val = sk_GENERAL_NAME_value(alt_names, i); if (val->type == type) { auto name = (const char *)ASN1_STRING_get0_data(val->d.ia5);