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 --- plugins/FavContacts/src/menu.cpp | 2 +- plugins/FavContacts/src/options.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/FavContacts/src') diff --git a/plugins/FavContacts/src/menu.cpp b/plugins/FavContacts/src/menu.cpp index 1605aade4f..ea979685fa 100644 --- a/plugins/FavContacts/src/menu.cpp +++ b/plugins/FavContacts/src/menu.cpp @@ -472,7 +472,7 @@ int ShowMenu(bool centered) szColumn.cx = szColumn.cy = 0; } - int groupID = -((int)Clist_GroupExists(favList[i]->getGroup()) + 1); + int groupID = -((INT_PTR)Clist_GroupExists(favList[i]->getGroup()) + 1); AppendMenu(hMenu, MF_OWNERDRAW | MF_SEPARATOR | ((prevGroup && g_Options.bUseColumns) ? MF_MENUBREAK : 0), diff --git a/plugins/FavContacts/src/options.cpp b/plugins/FavContacts/src/options.cpp index aa895c4856..39d0578537 100644 --- a/plugins/FavContacts/src/options.cpp +++ b/plugins/FavContacts/src/options.cpp @@ -230,7 +230,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA break; case CLN_NEWCONTACT: - iSelection = (int)((NMCLISTCONTROL *)lParam)->hItem; + iSelection = (INT_PTR)((NMCLISTCONTROL *)lParam)->hItem; for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) { if (SendDlgItemMessage(hwnd, IDC_CLIST, CLM_FINDCONTACT, hContact, 0) == iSelection) { SendDlgItemMessage(hwnd, IDC_CLIST, CLM_SETCHECKMARK, iSelection, @@ -241,7 +241,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA break; case CLN_CHECKCHANGED: - iSelection = (int)((NMCLISTCONTROL *)lParam)->hItem; + iSelection = (INT_PTR)((NMCLISTCONTROL *)lParam)->hItem; for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) { if (SendDlgItemMessage(hwnd, IDC_CLIST, CLM_FINDCONTACT, hContact, 0) == iSelection) { hSelectedContact = hContact; -- cgit v1.2.3