From d6eee2018898f2442883a0aa77ad095b75572cfb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Aug 2015 15:15:33 +0000 Subject: fix for 64-bit issues & warnings git-svn-id: http://svn.miranda-ng.org/main/trunk@15043 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/VKontakte/src/misc.cpp') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index bb57d1b3ee..67dec9e9cd 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -283,7 +283,7 @@ MCONTACT CVkProto::FindChat(LONG dwUserid) bool CVkProto::CheckMid(LIST &lList, int guid) { for (int i = lList.getCount() - 1; i >= 0; i--) - if ((int)lList[i] == guid) { + if ((INT_PTR)lList[i] == guid) { lList.remove(i); return true; } @@ -549,7 +549,7 @@ void CVkProto::ApplyCookies(AsyncHttpRequest *pReq) void __cdecl CVkProto::DBAddAuthRequestThread(void *p) { - MCONTACT hContact = (MCONTACT)p; + MCONTACT hContact = (UINT_PTR)p; if (hContact == NULL || hContact == INVALID_CONTACT_ID || !IsOnline()) return; @@ -696,7 +696,7 @@ void CVkProto::SetMirVer(MCONTACT hContact, int platform) void CVkProto::ContactTypingThread(void *p) { debugLogA("CVkProto::ContactTypingThread"); - MCONTACT hContact = (MCONTACT)p; + MCONTACT hContact = (UINT_PTR)p; CallService(MS_PROTO_CONTACTISTYPING, hContact, 5); Sleep(5500); CallService(MS_PROTO_CONTACTISTYPING, hContact); -- cgit v1.2.3