mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[Analyzers][CPP]Turn on warning 26475 (#22824)
This commit is contained in:
@@ -69,7 +69,7 @@ namespace ZoneSelectionAlgorithms
|
||||
zoneIndex = (static_cast<ZoneIndex>(pt.x) - overlap.left) * capturedZones.size() / width;
|
||||
}
|
||||
|
||||
zoneIndex = std::clamp(zoneIndex, ZoneIndex(0), static_cast<ZoneIndex>(capturedZones.size()) - 1);
|
||||
zoneIndex = std::clamp(zoneIndex, static_cast<ZoneIndex>(0), static_cast<ZoneIndex>(capturedZones.size()) - 1);
|
||||
|
||||
return { capturedZones[zoneIndex] };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user