From 5ca6d94556e9124407e14565625620a3876e9309 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 12 May 2016 19:52:20 +0200 Subject: [PATCH] Changed: Minor changes --- code/ryzom/client/src/http_client_curl.cpp | 4 ++-- code/ryzom/common/src/game_share/http_client.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/ryzom/client/src/http_client_curl.cpp b/code/ryzom/client/src/http_client_curl.cpp index 322223f94..e19a435c9 100644 --- a/code/ryzom/client/src/http_client_curl.cpp +++ b/code/ryzom/client/src/http_client_curl.cpp @@ -261,11 +261,11 @@ bool CCurlHttpClient::receive(string &res, bool verbose) { if (verbose) { - nldebug("Receiving %u bytes", _ReceiveBuffer.size()); + nldebug("Receiving %u bytes", (uint)_ReceiveBuffer.size()); } res.clear(); - if (_ReceiveBuffer.size()) + if (!_ReceiveBuffer.empty()) res.assign((const char*)&(*(_ReceiveBuffer.begin())), _ReceiveBuffer.size()); _ReceiveBuffer.clear(); return true; diff --git a/code/ryzom/common/src/game_share/http_client.cpp b/code/ryzom/common/src/game_share/http_client.cpp index d6a5fe360..3e100c762 100644 --- a/code/ryzom/common/src/game_share/http_client.cpp +++ b/code/ryzom/common/src/game_share/http_client.cpp @@ -193,14 +193,14 @@ bool CHttpClient::receive(string &res, bool verbose) if (_Sock.receive((uint8*)buf, size, false) == CSock::Ok) { - if (verbose) nlinfo("Received OK %d bytes", size); + if (verbose) nlinfo("Received OK %u bytes", size); buf[1023] = '\0'; res += (char*)buf; //nlinfo("block received '%s'", buf); } else { - if (verbose) nlinfo("Received CLOSE %d bytes", size); + if (verbose) nlinfo("Received CLOSE %u bytes", size); buf[size] = '\0'; res += (char*)buf; //nlwarning ("server connection closed");