From f440b596fc8670be8ea3fb1ec31322a3e4e4b9c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 15 Aug 2013 20:00:45 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Ping/src/options.cpp | 4 ++-- plugins/Ping/src/pinggraph.cpp | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'plugins/Ping/src') diff --git a/plugins/Ping/src/options.cpp b/plugins/Ping/src/options.cpp index 34e93a4c0e..1b0d6ea8dd 100644 --- a/plugins/Ping/src/options.cpp +++ b/plugins/Ping/src/options.cpp @@ -404,7 +404,7 @@ static INT_PTR CALLBACK DlgProcOpts2(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR add_edit_addr.get_status = ID_STATUS_OFFLINE; add_edit_addr.status = PS_NOTRESPONDING; add_edit_addr.item_id = 0; - add_edit_addr.index = temp_list.size(); + add_edit_addr.index = (int)temp_list.size(); if(DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG3), hwndDlg, DlgProcDestEdit) == IDOK) { @@ -421,7 +421,7 @@ static INT_PTR CALLBACK DlgProcOpts2(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR hw = GetDlgItem(hwndDlg, IDC_BTN_DESTEDIT); EnableWindow(hw, TRUE); - sel = temp_list.size() - 1; + sel = (int)temp_list.size() - 1; hw = GetDlgItem(hwndDlg, IDC_BTN_DESTUP); EnableWindow(hw, (sel > 0)); hw = GetDlgItem(hwndDlg, IDC_LST_DEST); diff --git a/plugins/Ping/src/pinggraph.cpp b/plugins/Ping/src/pinggraph.cpp index 59947ed7d9..453303fb5a 100644 --- a/plugins/Ping/src/pinggraph.cpp +++ b/plugins/Ping/src/pinggraph.cpp @@ -191,20 +191,19 @@ LRESULT CALLBACK GraphWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar if(wd->show_grid) { mir_snprintf(buff, SIZEOF(buff), Translate("%d ms"), MARK_TIME); - TextOut(hdc, r.right - 100, r.bottom - (int)(unit_height * MARK_TIME + 0.5f), buff, strlen(buff)); + TextOut(hdc, r.right - 100, r.bottom - (int)(unit_height * MARK_TIME + 0.5f), buff, (int)strlen(buff)); } if (wd->show_stat) { SetTextColor(hdc, RGB(255, 0, 0)); mir_snprintf(buff, SIZEOF(buff), Translate("AVG %.1lf ms"), avg); - TextOut(hdc, r.left + 10, r.bottom - (int)(avg * unit_height + 0.5f), buff, strlen(buff)); - if (max_value != avg) - { + TextOut(hdc, r.left + 10, r.bottom - (int)(avg * unit_height + 0.5f), buff, (int)strlen(buff)); + if (max_value != avg) { mir_snprintf(buff, SIZEOF(buff), Translate("MAX %hd ms"), max_value); - TextOut(hdc, r.left + 10, r.bottom - (int)(max_value * unit_height + 0.5f), buff, strlen(buff)); + TextOut(hdc, r.left + 10, r.bottom - (int)(max_value * unit_height + 0.5f), buff, (int)strlen(buff)); mir_snprintf(buff, SIZEOF(buff), Translate("MIN %hd ms"), min_value); - TextOut(hdc, r.left + 10, r.bottom - (int)(min_value * unit_height + 0.5f), buff, strlen(buff)); + TextOut(hdc, r.left + 10, r.bottom - (int)(min_value * unit_height + 0.5f), buff, (int)strlen(buff)); } } -- cgit v1.2.3