nghttpx: Fix compile error with gcc
This commit is contained in:
parent
07fb5854f3
commit
8401e16a15
|
@ -1583,10 +1583,10 @@ int cert_lookup_tree_add_ssl_ctx(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idx < indexed_ssl_ctx.size()) {
|
if (static_cast<size_t>(idx) < indexed_ssl_ctx.size()) {
|
||||||
indexed_ssl_ctx[idx].push_back(ssl_ctx);
|
indexed_ssl_ctx[idx].push_back(ssl_ctx);
|
||||||
} else {
|
} else {
|
||||||
assert(idx == indexed_ssl_ctx.size());
|
assert(static_cast<size_t>(idx) == indexed_ssl_ctx.size());
|
||||||
indexed_ssl_ctx.emplace_back(std::vector<SSL_CTX *>{ssl_ctx});
|
indexed_ssl_ctx.emplace_back(std::vector<SSL_CTX *>{ssl_ctx});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1624,10 +1624,10 @@ int cert_lookup_tree_add_ssl_ctx(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idx < indexed_ssl_ctx.size()) {
|
if (static_cast<size_t>(idx) < indexed_ssl_ctx.size()) {
|
||||||
indexed_ssl_ctx[idx].push_back(ssl_ctx);
|
indexed_ssl_ctx[idx].push_back(ssl_ctx);
|
||||||
} else {
|
} else {
|
||||||
assert(idx == indexed_ssl_ctx.size());
|
assert(static_cast<size_t>(idx) == indexed_ssl_ctx.size());
|
||||||
indexed_ssl_ctx.emplace_back(std::vector<SSL_CTX *>{ssl_ctx});
|
indexed_ssl_ctx.emplace_back(std::vector<SSL_CTX *>{ssl_ctx});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue