diff options
Diffstat (limited to 'meta2/edit_meta.cpp')
-rw-r--r-- | meta2/edit_meta.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|