Skip to content

Commit ca16a78

Browse files
Restore proper type cast
1 parent 9068d51 commit ca16a78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,15 +2772,15 @@ pi_result piDeviceGetInfo(pi_device Device, pi_device_info ParamName,
27722772
return ReturnValue(pi_uint64{DoubleFPValue});
27732773
}
27742774
case PI_DEVICE_INFO_IMAGE2D_MAX_WIDTH:
2775-
return ReturnValue(Device->ZeDeviceImageProperties->maxImageDims2D);
2775+
return ReturnValue(size_t{Device->ZeDeviceImageProperties->maxImageDims2D});
27762776
case PI_DEVICE_INFO_IMAGE2D_MAX_HEIGHT:
2777-
return ReturnValue(Device->ZeDeviceImageProperties->maxImageDims2D);
2777+
return ReturnValue(size_t{Device->ZeDeviceImageProperties->maxImageDims2D});
27782778
case PI_DEVICE_INFO_IMAGE3D_MAX_WIDTH:
2779-
return ReturnValue(Device->ZeDeviceImageProperties->maxImageDims3D);
2779+
return ReturnValue(size_t{Device->ZeDeviceImageProperties->maxImageDims3D});
27802780
case PI_DEVICE_INFO_IMAGE3D_MAX_HEIGHT:
2781-
return ReturnValue(Device->ZeDeviceImageProperties->maxImageDims3D);
2781+
return ReturnValue(size_t{Device->ZeDeviceImageProperties->maxImageDims3D});
27822782
case PI_DEVICE_INFO_IMAGE3D_MAX_DEPTH:
2783-
return ReturnValue(Device->ZeDeviceImageProperties->maxImageDims3D);
2783+
return ReturnValue(size_t{Device->ZeDeviceImageProperties->maxImageDims3D});
27842784
case PI_DEVICE_INFO_IMAGE_MAX_BUFFER_SIZE:
27852785
return ReturnValue(
27862786
size_t{Device->ZeDeviceImageProperties->maxImageBufferSize});

0 commit comments

Comments
 (0)