From eefe0a2e6705204b0fdbb0bc5b798d9f4e6b67b1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Jan 2015 19:39:18 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@11928 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 2 +- protocols/VKontakte/src/vk_files.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index d079ef7e41..5e1a404d57 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -695,7 +695,7 @@ char* CVkProto::GetStickerId(const char* Msg, int &stickerid) mir_snprintf(HeadMsg, SIZEOF(HeadMsg), "[sticker:%d]", stickerid); size_t retLen = mir_strlen(HeadMsg); if (retLen < mir_strlen(Msg)) { - CMStringA szMsg(Msg, mir_strlen(Msg) - mir_strlen(tmpMsg)); + CMStringA szMsg(Msg, int(mir_strlen(Msg) - mir_strlen(tmpMsg))); szMsg.Append(&tmpMsg[retLen]); retMsg = mir_strdup(szMsg.GetBuffer()); } diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index 4f46bd54ce..51ac03888c 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -230,7 +230,7 @@ void CVkProto::OnReciveUploadServer(NETLIBHTTPREQUEST *reply, AsyncHttpRequest * pUploadReq->pData = pData; pData += DataBegin.GetLength(); - long lBytes = fread(pData, 1, iFileLen, pFile); + long lBytes = (long)fread(pData, 1, iFileLen, pFile); fclose(pFile); if (lBytes != iFileLen) { -- cgit v1.2.3