From 4e3821c37db286cb4d26612bf5fa34d9926374b9 Mon Sep 17 00:00:00 2001 From: James Holderness Date: Tue, 9 Jan 2024 16:49:40 +0000 Subject: [PATCH] Fix x86 signed/unsigned mismatch in unit tests. --- .../adapter/ut_adapter/adapterTest.cpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/terminal/adapter/ut_adapter/adapterTest.cpp b/src/terminal/adapter/ut_adapter/adapterTest.cpp index 532811d22fae..54aae04a64de 100644 --- a/src/terminal/adapter/ut_adapter/adapterTest.cpp +++ b/src/terminal/adapter/ut_adapter/adapterTest.cpp @@ -3014,57 +3014,57 @@ class AdapterTest Log::Comment(L"DECAUPSS: DEC Supplemental"); assignCharset(DispatchTypes::CharsetSize::Size94, L"%5"); VERIFY_ARE_EQUAL(VTID("%5"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(94, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(94u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: DEC Greek"); assignCharset(DispatchTypes::CharsetSize::Size94, L"\"?"); VERIFY_ARE_EQUAL(VTID("\"?"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(94, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(94u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: DEC Hebrew"); assignCharset(DispatchTypes::CharsetSize::Size94, L"\"4"); VERIFY_ARE_EQUAL(VTID("\"4"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(94, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(94u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: DEC Turkish"); assignCharset(DispatchTypes::CharsetSize::Size94, L"%0"); VERIFY_ARE_EQUAL(VTID("%0"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(94, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(94u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: DEC Cyrillic"); assignCharset(DispatchTypes::CharsetSize::Size94, L"&4"); VERIFY_ARE_EQUAL(VTID("&4"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(94, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(94u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: ISO Latin-1"); assignCharset(DispatchTypes::CharsetSize::Size96, L"A"); VERIFY_ARE_EQUAL(VTID("A"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(96, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(96u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: ISO Latin-2"); assignCharset(DispatchTypes::CharsetSize::Size96, L"B"); VERIFY_ARE_EQUAL(VTID("B"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(96, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(96u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: ISO Latin-Greek"); assignCharset(DispatchTypes::CharsetSize::Size96, L"F"); VERIFY_ARE_EQUAL(VTID("F"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(96, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(96u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: ISO Latin-Hebrew"); assignCharset(DispatchTypes::CharsetSize::Size96, L"H"); VERIFY_ARE_EQUAL(VTID("H"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(96, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(96u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: ISO Latin-Cyrillic"); assignCharset(DispatchTypes::CharsetSize::Size96, L"L"); VERIFY_ARE_EQUAL(VTID("L"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(96, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(96u, termOutput.GetUserPreferenceCharsetSize()); Log::Comment(L"DECAUPSS: ISO Latin-5"); assignCharset(DispatchTypes::CharsetSize::Size96, L"M"); VERIFY_ARE_EQUAL(VTID("M"), termOutput.GetUserPreferenceCharsetId()); - VERIFY_ARE_EQUAL(96, termOutput.GetUserPreferenceCharsetSize()); + VERIFY_ARE_EQUAL(96u, termOutput.GetUserPreferenceCharsetSize()); } TEST_METHOD(RequestUserPreferenceCharsets)