Skip to content

Commit

Permalink
Merge pull request #1167 from PietroGhg/pietro/static_cast_device_info
Browse files Browse the repository at this point in the history
[NATIVECPU] Use static_cast in switch for ur_device_info_t
  • Loading branch information
kbenzie authored Dec 8, 2023
2 parents 8b53b20 + 1ec152e commit 20fa0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/native_cpu/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
UR_ASSERT(hDevice, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);

switch (propName) {
switch (static_cast<uint32_t>(propName)) {
case UR_DEVICE_INFO_TYPE:
return ReturnValue(UR_DEVICE_TYPE_CPU);
case UR_DEVICE_INFO_PARENT_DEVICE:
Expand Down

0 comments on commit 20fa0b5

Please sign in to comment.