mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[FancyZones] Fixed type cast warning (#6311)
This commit is contained in:
@@ -104,9 +104,9 @@ namespace FancyZonesUtils
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
const long long tmp = std::stoll(hex.data(), nullptr, 16);
|
const long long tmp = std::stoll(hex.data(), nullptr, 16);
|
||||||
const BYTE nR = (tmp & 0xFF0000) >> 16;
|
const BYTE nR = static_cast<BYTE>((tmp & 0xFF0000) >> 16);
|
||||||
const BYTE nG = (tmp & 0xFF00) >> 8;
|
const BYTE nG = static_cast<BYTE>((tmp & 0xFF00) >> 8);
|
||||||
const BYTE nB = (tmp & 0xFF);
|
const BYTE nB = static_cast<BYTE>((tmp & 0xFF));
|
||||||
return RGB(nR, nG, nB);
|
return RGB(nR, nG, nB);
|
||||||
}
|
}
|
||||||
catch (const std::exception&)
|
catch (const std::exception&)
|
||||||
|
|||||||
Reference in New Issue
Block a user