Skip to content

Commit 20fa0b5

Browse files
authored
Merge pull request #1167 from PietroGhg/pietro/static_cast_device_info
[NATIVECPU] Use static_cast in switch for ur_device_info_t
2 parents 8b53b20 + 1ec152e commit 20fa0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/native_cpu/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
6060
UR_ASSERT(hDevice, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
6161
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
6262

63-
switch (propName) {
63+
switch (static_cast<uint32_t>(propName)) {
6464
case UR_DEVICE_INFO_TYPE:
6565
return ReturnValue(UR_DEVICE_TYPE_CPU);
6666
case UR_DEVICE_INFO_PARENT_DEVICE:

0 commit comments

Comments
 (0)