Fix compiler warning

This commit is contained in:
Tatsuhiro Tsujikawa 2015-06-06 23:37:46 +09:00
parent 163dfb3150
commit bbbddedb8f
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ int HttpDownstreamConnection::on_read() {
} }
if (downstream_->get_upgraded()) { if (downstream_->get_upgraded()) {
if (nproc < nread) { if (nproc < static_cast<size_t>(nread)) {
// Data from buf.data() + nproc are for upgraded protocol. // Data from buf.data() + nproc are for upgraded protocol.
rv = downstream_->get_upstream()->on_downstream_body( rv = downstream_->get_upstream()->on_downstream_body(
downstream_, buf.data() + nproc, nread - nproc, true); downstream_, buf.data() + nproc, nread - nproc, true);