Skip to content

Commit f8b0880

Browse files
committed
if size_t to uint32_t warning
1 parent eeb6d4b commit f8b0880

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/common/level_zero_mocks.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ LevelZeroMock::initializeMemoryProviderWithResidentDevices(
2121
ze_device_handle_t device, std::vector<ze_device_handle_t> residentDevices,
2222
ze_context_handle_t context, ze_device_properties_t device_properties,
2323
ze_memory_allocation_properties_t memory_allocation_properties) {
24+
2425
umf_level_zero_memory_provider_params_handle_t params = nullptr;
2526
EXPECT_EQ(umfLevelZeroMemoryProviderParamsCreate(&params),
2627
UMF_RESULT_SUCCESS);
@@ -31,10 +32,10 @@ LevelZeroMock::initializeMemoryProviderWithResidentDevices(
3132
EXPECT_EQ(umfLevelZeroMemoryProviderParamsSetMemoryType(
3233
params, UMF_MEMORY_TYPE_DEVICE),
3334
UMF_RESULT_SUCCESS);
34-
35-
EXPECT_EQ(umfLevelZeroMemoryProviderParamsSetResidentDevices(
36-
params, residentDevices.data(), residentDevices.size()),
37-
UMF_RESULT_SUCCESS);
35+
EXPECT_EQ(
36+
umfLevelZeroMemoryProviderParamsSetResidentDevices(
37+
params, residentDevices.data(), (uint32_t)residentDevices.size()),
38+
UMF_RESULT_SUCCESS);
3839

3940
// query min page size operation upon provider initialization
4041
EXPECT_CALL(*this, zeDeviceGetProperties(device, _))

0 commit comments

Comments
 (0)