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