mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 23:19:13 +08:00
Fixed some compiler warnings (#1577)
* Fixed some compiler warnings * Changed long to int
This commit is contained in:
parent
96a7e4f7ac
commit
2cc6d2ef11
@ -407,7 +407,8 @@ namespace FancyZonesEditor
|
||||
}
|
||||
|
||||
inputStream.Close();
|
||||
} catch (Exception ex)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LayoutModel.ShowExceptionMessageBox("Error parsing device info data", ex);
|
||||
}
|
||||
|
@ -560,7 +560,7 @@ bool ZoneSet::CalculateGridZones(Rect workArea, JSONHelpers::GridLayoutInfo grid
|
||||
|
||||
// Note: The expressions below are carefully written to
|
||||
// make the sum of all zones' sizes exactly total{Width|Height}
|
||||
long long totalPercents = 0;
|
||||
int totalPercents = 0;
|
||||
for (int row = 0; row < gridLayoutInfo.rows(); row++)
|
||||
{
|
||||
rowInfo[row].Start = totalPercents * totalHeight / C_MULTIPLIER + (row + 1) * spacing;
|
||||
|
Loading…
Reference in New Issue
Block a user