Skip to content

Commit 1ec152e

Browse files
committed
Use static_cast in switch for ur_device_info_t
1 parent 364a299 commit 1ec152e

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)