diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp index 182d106866..7d814280a0 100644 --- a/base/applications/rapps/gui.cpp +++ b/base/applications/rapps/gui.cpp @@ -1857,7 +1857,7 @@ public: // When there is no control found, go to the first or last (depending on tab vs shift-tab) int current = direction > 0 ? 0 : (_countof(Controls) - 1); HWND hActive = ::GetFocus(); - for (int n = 0; n < _countof(Controls); ++n) + for (int n = 0; n < (int) _countof(Controls); ++n) { if (hActive == Controls[n]) { @@ -1868,7 +1868,7 @@ public: if (current < 0) current = (_countof(Controls) - 1); - else if (current >= _countof(Controls)) + else if (current >= (int) _countof(Controls)) current = 0; ::SetFocus(Controls[current]);