From 20d1480ed78c9395749d5b4e198d8687f95220e6 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 31 Mar 2009 05:32:30 +0000 Subject: x64 port git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@450 4f64403b-2f21-0410-a795-97e2b3489a10 --- meta2/edit_meta.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta2/edit_meta.cpp') diff --git a/meta2/edit_meta.cpp b/meta2/edit_meta.cpp index 839a15a..38edecc 100644 --- a/meta2/edit_meta.cpp +++ b/meta2/edit_meta.cpp @@ -109,7 +109,7 @@ void SetListSelection(HWND hList, int sel) { } void ApplyChanges() { - if(def >= 0 && def < metaMap[hMeta].size()) + if(def >= 0 && def < (int)metaMap[hMeta].size()) MetaAPI_SetDefaultContactNum((WPARAM)hMeta, (LPARAM)def); else MetaAPI_SetDefaultContactNum((WPARAM)hMeta, (LPARAM)0); @@ -189,7 +189,7 @@ INT_PTR CALLBACK Meta_EditDialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR case IDC_BTN_REM: { int index = SendDlgItemMessage(hwndDlg, IDC_LST_CONTACTS, LVM_GETNEXTITEM,-1,LVNI_FOCUSED|LVNI_SELECTED); // return item selected - if(index >= 0 && index < subs.size()) { + if(index >= 0 && index < (int)subs.size()) { subs.remove(subs[index].handle()); if(def >= index && def > 0) def--; changed = true; -- cgit v1.2.3