Enable signed/unsigned mismatch warning for MSVC

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-06-29 10:52:17 +00:00
committed by Compute-Runtime-Automation
parent 30071599df
commit aff0ea99a8
11 changed files with 70 additions and 70 deletions

View File

@@ -281,7 +281,7 @@ TEST(WslUmKmDataTranslator, whenOpeningExistingHandleThenResourceInfoIsCopiedBas
UmKmDataTempStorage<GMM_RESOURCE_INFO> gmmResInfoDst2(handleSize);
gmmHandleAllocator->openHandle(gmmResourceInfoHandle, reinterpret_cast<GMM_RESOURCE_INFO *>(gmmResInfoDst2.data()), sizeof(TOK_S_GMM_RESOURCE_INFO_WIN_STRUCT) + 4);
EXPECT_EQ(0, reinterpret_cast<uint64_t>(reinterpret_cast<GMM_RESOURCE_INFO *>(gmmResInfoDst2.data())->GetPrivateData()));
EXPECT_EQ(0u, reinterpret_cast<uint64_t>(reinterpret_cast<GMM_RESOURCE_INFO *>(gmmResInfoDst2.data())->GetPrivateData()));
gmmHandleAllocator->destroyHandle(gmmResourceInfoHandle);
}
@@ -309,13 +309,13 @@ TEST(WslUmKmDataTranslator, whenTranslatingGraphicsPartitionThenResultIsBasedOnW
dst.Heap32->Base = 0;
auto ret = translatorV0->translateGmmGfxPartitioningToInternalRepresentation(&dst, sizeof(GMM_GFX_PARTITIONING), src);
EXPECT_TRUE(ret);
EXPECT_EQ(7, dst.Heap32->Base);
EXPECT_EQ(7u, dst.Heap32->Base);
src.Heap32->Base = 7;
dst.Heap32->Base = 0;
ret = translatorV1->translateGmmGfxPartitioningToInternalRepresentation(&dst, sizeof(GMM_GFX_PARTITIONING), src);
EXPECT_FALSE(ret);
EXPECT_EQ(0, dst.Heap32->Base);
EXPECT_EQ(0u, dst.Heap32->Base);
src.Heap32->Base = 7;
dst.Heap32->Base = 0;
@@ -327,13 +327,13 @@ TEST(WslUmKmDataTranslator, whenTranslatingGraphicsPartitionThenResultIsBasedOnW
dst.Heap32->Base = 0;
ret = translatorV0->translateGmmGfxPartitioningFromInternalRepresentation(dst, &src, sizeof(GMM_GFX_PARTITIONING));
EXPECT_TRUE(ret);
EXPECT_EQ(7, dst.Heap32->Base);
EXPECT_EQ(7u, dst.Heap32->Base);
src.Heap32->Base = 7;
dst.Heap32->Base = 0;
ret = translatorV1->translateGmmGfxPartitioningFromInternalRepresentation(dst, &src, sizeof(GMM_GFX_PARTITIONING));
EXPECT_FALSE(ret);
EXPECT_EQ(0, dst.Heap32->Base);
EXPECT_EQ(0u, dst.Heap32->Base);
src.Heap32->Base = 7;
dst.Heap32->Base = 0;