Fix casts warnings. (#509)

This commit is contained in:
Hermès BÉLUSCA - MAÏTO 2019-05-07 21:08:26 +02:00 committed by adiviness
parent e6767acf46
commit 599a8dff0f
3 changed files with 3 additions and 3 deletions

View file

@ -710,7 +710,7 @@ namespace winrt::TerminalApp::implementation
// we clamp the values to the range [0, tabCount) while still supporting moving
// leftward from 0 to tabCount - 1.
_SetFocusedTabIndex(
(tabCount + focusedTabIndex + (bMoveRight ? 1 : -1)) % tabCount
static_cast<int>((tabCount + focusedTabIndex + (bMoveRight ? 1 : -1)) % tabCount)
);
}

View file

@ -358,7 +358,7 @@ std::wstring CascadiaSettings::ExpandEnvironmentVariableString(std::wstring_view
do
{
result.resize(requiredSize);
requiredSize = ::ExpandEnvironmentStringsW(source.data(), result.data(), result.size());
requiredSize = ::ExpandEnvironmentStringsW(source.data(), result.data(), static_cast<DWORD>(result.size()));
} while (requiredSize != result.size());
// Trim the terminating null character

View file

@ -352,7 +352,7 @@ Profile Profile::FromJson(winrt::Windows::Data::Json::JsonObject json)
}
if (json.HasKey(CURSORHEIGHT_KEY))
{
result._cursorHeight = json.GetNamedNumber(CURSORHEIGHT_KEY);
result._cursorHeight = static_cast<uint32_t>(json.GetNamedNumber(CURSORHEIGHT_KEY));
}
if (json.HasKey(CURSORSHAPE_KEY))
{