Skip to content

Commit

Permalink
fix signed mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Dec 22, 2019
1 parent 47bc23e commit 6d559b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,12 @@ INT_PTR CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
return FALSE;
}

if (notify_code == 0 && ctrl_id >= IDX_LANGUAGE && ctrl_id <= IDX_LANGUAGE + app.LocaleGetCount ())
if (notify_code == 0 && ctrl_id >= IDX_LANGUAGE && ctrl_id <= INT (IDX_LANGUAGE + app.LocaleGetCount ()))
{
app.LocaleApplyFromMenu (GetSubMenu (GetSubMenu (GetMenu (hwnd), 1), LANG_MENU), ctrl_id, IDX_LANGUAGE);
return FALSE;
}
else if ((ctrl_id >= IDX_MODULES && ctrl_id <= IDX_MODULES + modules.size ()))
else if ((ctrl_id >= IDX_MODULES && ctrl_id <= INT (IDX_MODULES + modules.size ())))
{
const size_t idx = ctrl_id - IDX_MODULES;
PITEM_MODULE ptr_module = modules.at (idx);
Expand Down

0 comments on commit 6d559b9

Please sign in to comment.