Fixed some compiler warnings (#1577)

* Fixed some compiler warnings

* Changed long to int
This commit is contained in:
Ivan Stošić 2020-03-16 17:54:30 +01:00 committed by GitHub
parent 96a7e4f7ac
commit 2cc6d2ef11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -407,7 +407,8 @@ namespace FancyZonesEditor
}
inputStream.Close();
} catch (Exception ex)
}
catch (Exception ex)
{
LayoutModel.ShowExceptionMessageBox("Error parsing device info data", ex);
}

View File

@ -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;