From 1039b2829a264280493ba0fa979214fe024dc70c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 17:06:04 +0300 Subject: WORD -> uint16_t --- protocols/Weather/src/weather_opt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Weather/src/weather_opt.cpp') diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp index 3a8d7f26dd..9dd186f751 100644 --- a/protocols/Weather/src/weather_opt.cpp +++ b/protocols/Weather/src/weather_opt.cpp @@ -268,7 +268,7 @@ static INT_PTR CALLBACK OptionsProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM l // get update time and remove the old timer GetDlgItemText(hdlg, IDC_UPDATETIME, str, _countof(str)); - opt.UpdateTime = (WORD)_wtoi(str); + opt.UpdateTime = (uint16_t)_wtoi(str); if (opt.UpdateTime < 1) opt.UpdateTime = 1; KillTimer(nullptr, timerId); timerId = SetTimer(nullptr, 0, opt.UpdateTime * 60000, timerProc); -- cgit v1.2.3