nghttpx: Fix compile error with gcc

This commit is contained in:
Tatsuhiro Tsujikawa 2016-11-07 23:11:52 +09:00
parent d0310c8aee
commit f4474d57ec
1 changed files with 1 additions and 1 deletions

View File

@ -1670,7 +1670,7 @@ bool contains_trailers(const StringRef &s) {
for (auto p = std::begin(s), end = std::end(s);; ++p) {
p = std::find_if(p, end, [](char c) { return c != ' ' && c != '\t'; });
if (p == end || end - p < trailers.size()) {
if (p == end || static_cast<size_t>(end - p) < trailers.size()) {
return false;
}
if (util::strieq(trailers, StringRef{p, p + trailers.size()})) {