Fix casts warnings. (#509)
This commit is contained in:
parent
e6767acf46
commit
599a8dff0f
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue