From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- utils/mir_options.cpp | 8 ++++---- utils/mir_options.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'utils') diff --git a/utils/mir_options.cpp b/utils/mir_options.cpp index 9569d37a32..cc20034688 100644 --- a/utils/mir_options.cpp +++ b/utils/mir_options.cpp @@ -103,7 +103,7 @@ static void LoadOpt(OptPageControl *ctrl, char *module) wchar_t tmp[1024]; switch (ctrl->type) { case CONTROL_CHECKBOX: - *((BYTE *)ctrl->var) = db_get_b(0, module, ctrl->setting, ctrl->dwDefValue); + *((uint8_t *)ctrl->var) = db_get_b(0, module, ctrl->setting, ctrl->dwDefValue); break; case CONTROL_SPIN: @@ -313,7 +313,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha switch (ctrl->type) { case CONTROL_CHECKBOX: - db_set_b(0, module, ctrl->setting, (BYTE)IsDlgButtonChecked(hwndDlg, ctrl->nID)); + db_set_b(0, module, ctrl->setting, (uint8_t)IsDlgButtonChecked(hwndDlg, ctrl->nID)); break; case CONTROL_SPIN: @@ -326,7 +326,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha case CONTROL_RADIO: if (IsDlgButtonChecked(hwndDlg, ctrl->nID)) - db_set_w(0, module, ctrl->setting, (BYTE)ctrl->value); + db_set_w(0, module, ctrl->setting, (uint8_t)ctrl->value); break; case CONTROL_COMBO: @@ -345,7 +345,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha ListView_GetItem(hwndProtocols, &lvi); char *setting = (char *)lvi.lParam; - db_set_b(0, module, setting, (BYTE)ListView_GetCheckState(hwndProtocols, k)); + db_set_b(0, module, setting, (uint8_t)ListView_GetCheckState(hwndProtocols, k)); } } break; diff --git a/utils/mir_options.h b/utils/mir_options.h index 937eb71366..e0c43d8457 100644 --- a/utils/mir_options.h +++ b/utils/mir_options.h @@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. #include -#define CONTROL_CHECKBOX 0 // Stored as BYTE +#define CONTROL_CHECKBOX 0 // Stored as uint8_t #define CONTROL_SPIN 1 // Stored as WORD #define CONTROL_COLOR 2 // Stored as DWORD #define CONTROL_RADIO 3 // Stored as WORD -- cgit v1.2.3