From 50103414521663eb1cecadff387bcf227f1b8b86 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 16 Dec 2014 16:47:06 +0000 Subject: NewsAggregator: warnings fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11469 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/CheckFeed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewsAggregator/Src/CheckFeed.cpp') diff --git a/plugins/NewsAggregator/Src/CheckFeed.cpp b/plugins/NewsAggregator/Src/CheckFeed.cpp index b1efb248b6..1920ff7f4c 100644 --- a/plugins/NewsAggregator/Src/CheckFeed.cpp +++ b/plugins/NewsAggregator/Src/CheckFeed.cpp @@ -129,7 +129,7 @@ static void XmlToMsg(MCONTACT hContact, CMString &title, CMString &link, CMStrin for (HANDLE hDbEvent = db_event_last(hContact); hDbEvent; hDbEvent = db_event_prev(hContact, hDbEvent)) { olddbei.cbBlob = db_event_getBlobSize(hDbEvent); if (olddbei.cbBlob > cbMemoLen) - pbBuffer = (PBYTE)mir_realloc(pbBuffer, cbMemoLen = olddbei.cbBlob); + pbBuffer = (PBYTE)mir_realloc(pbBuffer, (size_t)(cbMemoLen = olddbei.cbBlob)); olddbei.pBlob = pbBuffer; db_event_get(hDbEvent, &olddbei); @@ -137,7 +137,7 @@ static void XmlToMsg(MCONTACT hContact, CMString &title, CMString &link, CMStrin if (stamp > 0 && olddbei.timestamp < (DWORD)stamp) break; - if (strlen((char*)olddbei.pBlob) == cbOrigLen && !mir_strcmp((char*)olddbei.pBlob, pszTemp)) { + if ((DWORD)strlen((char*)olddbei.pBlob) == cbOrigLen && !mir_strcmp((char*)olddbei.pBlob, pszTemp)) { MesExist = true; break; } @@ -150,7 +150,7 @@ static void XmlToMsg(MCONTACT hContact, CMString &title, CMString &link, CMStrin PROTORECVEVENT recv = { 0 }; recv.flags = PREF_TCHAR; - recv.timestamp = stamp; + recv.timestamp = (DWORD)stamp; recv.tszMessage = message; ProtoChainRecvMsg(hContact, &recv); } -- cgit v1.2.3