diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-15 10:31:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-15 10:31:59 +0000 |
commit | 64584429ed5064bb25f8275bdd430728de9fd421 (patch) | |
tree | 03acd4e30eab2d3a947dfb812dc42d9f53a3ec7d /protocols/Gadu-Gadu/src | |
parent | 79ce60e9da5646dfd850b1e9f1ce3e8642f38695 (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@8616 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r-- | protocols/Gadu-Gadu/src/avatar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Gadu-Gadu/src/avatar.cpp b/protocols/Gadu-Gadu/src/avatar.cpp index 3072de1898..defabb11e5 100644 --- a/protocols/Gadu-Gadu/src/avatar.cpp +++ b/protocols/Gadu-Gadu/src/avatar.cpp @@ -380,12 +380,12 @@ void __cdecl GGPROTO::setavatarthread(void *param) return;
}
- size_t avatarFileLen = (size_t)_filelength(file_fd);
+ long avatarFileLen = _filelength(file_fd);
char* avatarFile = (char*)mir_alloc(avatarFileLen);
_read(file_fd, avatarFile, avatarFileLen);
_close(file_fd);
- ptrA avatarFileB64(mir_base64_encode((PBYTE)avatarFile, (unsigned)avatarFileLen));
+ ptrA avatarFileB64(mir_base64_encode((PBYTE)avatarFile, avatarFileLen));
mir_free(avatarFile);
ptrA avatarFileB64Enc(mir_urlEncode(avatarFileB64));
@@ -434,7 +434,7 @@ void __cdecl GGPROTO::setavatarthread(void *param) httpHeaders[9].szValue = "http://avatars.nowe.gg/.static/index_new_22.0.2_595nwh.html";
req.headers = httpHeaders;
req.pData = data;
- req.dataLength = dataLen;
+ req.dataLength = int(dataLen);
//send request
int resultSuccess = 0;
@@ -472,7 +472,7 @@ void __cdecl GGPROTO::setavatarthread(void *param) req.headersCount = 10;
req.headers = httpHeaders;
req.pData = data;
- req.dataLength = dataLen;
+ req.dataLength = int(dataLen);
resp = (NETLIBHTTPREQUEST *)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)&req);
if (resp) {
|