From 2cc6d2ef11c5b6b6d3879fcdb3773589185d80f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Sto=C5=A1i=C4=87?= Date: Mon, 16 Mar 2020 17:54:30 +0100 Subject: [PATCH] Fixed some compiler warnings (#1577) * Fixed some compiler warnings * Changed long to int --- .../fancyzones/editor/FancyZonesEditor/Models/Settings.cs | 3 ++- src/modules/fancyzones/lib/ZoneSet.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs index 3947ff6181..e38b98c45d 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/Models/Settings.cs @@ -407,7 +407,8 @@ namespace FancyZonesEditor } inputStream.Close(); - } catch (Exception ex) + } + catch (Exception ex) { LayoutModel.ShowExceptionMessageBox("Error parsing device info data", ex); } diff --git a/src/modules/fancyzones/lib/ZoneSet.cpp b/src/modules/fancyzones/lib/ZoneSet.cpp index 806d71106a..58c02635da 100644 --- a/src/modules/fancyzones/lib/ZoneSet.cpp +++ b/src/modules/fancyzones/lib/ZoneSet.cpp @@ -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;