[Analyzers][CPP]Turn on warning 4389 (#22082)

This commit is contained in:
sosssego
2022-11-23 16:18:17 +00:00
committed by GitHub
parent b2c8900bae
commit c3ffd17e43
5 changed files with 7 additions and 7 deletions

View File

@@ -243,7 +243,7 @@ bool WorkArea::MoveWindowIntoZoneByDirectionAndIndex(HWND window, DWORD vkCode,
ZoneIndex oldId = zoneIndexes[0];
// We reached the edge
if ((vkCode == VK_LEFT && oldId == 0) || (vkCode == VK_RIGHT && oldId == numZones - 1))
if ((vkCode == VK_LEFT && oldId == 0) || (vkCode == VK_RIGHT && oldId == static_cast<int64_t>(numZones) - 1))
{
if (!cycle)
{