diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-10 10:44:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-10 10:44:04 +0000 |
commit | 8c2cf8fada9a01f749f6f96f177fdb1f590e5393 (patch) | |
tree | e3ad5464a1df2ab255102c477df2360f4aba6778 /protocols/Twitter/utility.cpp | |
parent | ddf46f560f63f43aedc6464edad759cc3a711d4b (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/utility.cpp')
-rw-r--r-- | protocols/Twitter/utility.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. 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<char*>(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)
|