diff --git a/services/native/src/usb_right_manager.cpp b/services/native/src/usb_right_manager.cpp index b89db1c06b3d211da99e6080033476ae38e53da8..2ef9cedbd592f0d02210091b131f2969e80caa12 100644 --- a/services/native/src/usb_right_manager.cpp +++ b/services/native/src/usb_right_manager.cpp @@ -388,7 +388,7 @@ int32_t UsbRightManager::HasSetFuncRight(int32_t functions) USB_HILOGW(MODULE_USB_SERVICE, "is not system app"); return UEC_SERVICE_PERMISSION_DENIED_SYSAPI; } - if (!(functions & UsbSrvSupport::FUNCTION_HDC)) { + if (!(static_cast(functions) & UsbSrvSupport::FUNCTION_HDC)) { return UEC_OK; } USB_HILOGI(MODULE_USB_SERVICE, "Set up function permission validation");