Skip to content

Commit

Permalink
Fix signed/unsigned mismatches.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Mar 16, 2023
1 parent 89bbb0f commit 2effde0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/terminal/adapter/adaptDispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3987,7 +3987,7 @@ ITermDispatch::StringHandler AdaptDispatch::_RestoreTabStops()
{
// Note that column 1 is always a tab stop, so there is no
// need to record an entry at that offset.
if (column > 1 && column <= width)
if (column > 1u && column <= static_cast<size_t>(width))
{
_tabStopColumns.at(column - 1) = true;
}
Expand Down
12 changes: 6 additions & 6 deletions src/terminal/adapter/ut_adapter/adapterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2094,12 +2094,12 @@ class AdapterTest

Log::Comment(L"Restore charset configuration");
stateMachine.ProcessString(L"\033P1$t1;1;1;@;@;@;3;1;H;ABCF\033\\");
VERIFY_ARE_EQUAL(3, termOutput.GetLeftSetNumber());
VERIFY_ARE_EQUAL(1, termOutput.GetRightSetNumber());
VERIFY_ARE_EQUAL(94, termOutput.GetCharsetSize(0));
VERIFY_ARE_EQUAL(94, termOutput.GetCharsetSize(1));
VERIFY_ARE_EQUAL(94, termOutput.GetCharsetSize(2));
VERIFY_ARE_EQUAL(96, termOutput.GetCharsetSize(3));
VERIFY_ARE_EQUAL(3u, termOutput.GetLeftSetNumber());
VERIFY_ARE_EQUAL(1u, termOutput.GetRightSetNumber());
VERIFY_ARE_EQUAL(94u, termOutput.GetCharsetSize(0));
VERIFY_ARE_EQUAL(94u, termOutput.GetCharsetSize(1));
VERIFY_ARE_EQUAL(94u, termOutput.GetCharsetSize(2));
VERIFY_ARE_EQUAL(96u, termOutput.GetCharsetSize(3));
VERIFY_ARE_EQUAL(VTID("A"), termOutput.GetCharsetId(0));
VERIFY_ARE_EQUAL(VTID("B"), termOutput.GetCharsetId(1));
VERIFY_ARE_EQUAL(VTID("C"), termOutput.GetCharsetId(2));
Expand Down

0 comments on commit 2effde0

Please sign in to comment.