From 753f6d4a3e5696438d96f560f79352a59841ef08 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 9 Sep 2015 21:01:13 +0900 Subject: [PATCH] src: Fix compiler warning --- src/shrpx_client_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_client_handler.cc b/src/shrpx_client_handler.cc index 5ccc423e..c9dd67be 100644 --- a/src/shrpx_client_handler.cc +++ b/src/shrpx_client_handler.cc @@ -914,7 +914,7 @@ int ClientHandler::proxy_protocol_read() { constexpr const char HEADER[] = "PROXY "; - if (end - rb_.pos < str_size(HEADER)) { + if (static_cast(end - rb_.pos) < str_size(HEADER)) { if (LOG_ENABLED(INFO)) { CLOG(INFO, this) << "PROXY-protocol-v1: PROXY version 1 ID not found"; }