src: Fix compiler warning

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-09 21:01:13 +09:00
parent aba2dbddc2
commit 753f6d4a3e
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ int ClientHandler::proxy_protocol_read() {
constexpr const char HEADER[] = "PROXY ";
if (end - rb_.pos < str_size(HEADER)) {
if (static_cast<size_t>(end - rb_.pos) < str_size(HEADER)) {
if (LOG_ENABLED(INFO)) {
CLOG(INFO, this) << "PROXY-protocol-v1: PROXY version 1 ID not found";
}