From 8c2cf8fada9a01f749f6f96f177fdb1f590e5393 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Jun 2012 10:44:04 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/utility.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter/utility.cpp') diff --git a/protocols/Twitter/utility.cpp b/protocols/Twitter/utility.cpp index 0c9377d7c4..2f79a40e99 100644 --- a/protocols/Twitter/utility.cpp +++ b/protocols/Twitter/utility.cpp @@ -23,7 +23,7 @@ along with this program. If not, see . std::string b64encode(const std::string &s) { NETLIBBASE64 encode; - encode.cbDecoded = s.length(); + encode.cbDecoded = (int)s.length(); encode.pbDecoded = (BYTE*)s.c_str(); encode.cchEncoded = Netlib_GetBase64EncodedBufferSize(encode.cbDecoded); encode.pszEncoded = new char[encode.cchEncoded+1]; @@ -122,7 +122,7 @@ http::response mir_twitter::slurp(const std::string &url,http::method meth, pdata_STR = WideToUTF8(pdata_WSTR); req.headersCount = 3; - req.dataLength = pdata_STR.size(); + req.dataLength = (int)pdata_STR.size(); req.pData = const_cast(pdata_STR.c_str()); LOG("**SLURP::POST - req.pdata is %s", req.pData); } @@ -162,7 +162,7 @@ int mir_twitter::LOG(const char *fmt,...) mir_vsnprintf(text,sizeof(text),fmt,va); va_end(va); - return CallService(MS_NETLIB_LOG,(WPARAM)handle_,(LPARAM)text); + return (int)CallService(MS_NETLIB_LOG,(WPARAM)handle_,(LPARAM)text); } int mir_twitter::WLOG(const char* first, const std::wstring last) -- cgit v1.2.3