From 6a5392433ccd85ffbfea9a904fde0f5bae22c155 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 2 Jun 2020 10:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86warning=20httpclientpool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cpp/httpclientpool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/httpclientpool.cc b/cpp/httpclientpool.cc index 46e83c8..47a7762 100644 --- a/cpp/httpclientpool.cc +++ b/cpp/httpclientpool.cc @@ -441,7 +441,7 @@ namespace f8 static void locking_function(int mode, int n, const char *file, int line) { - if (n != f8::HttpClientPool::Instance()->Impl()->mutex_buf_size) { + if (n != (int)f8::HttpClientPool::Instance()->Impl()->mutex_buf_size) { abort(); } pthread_mutex_t* mutex = &f8::HttpClientPool::Instance()->Impl()->mutex_buf[n];