From 9ec9f4c5ad226ab038b65e04264c223050177c0a Mon Sep 17 00:00:00 2001 From: luo-wei246 Date: Mon, 19 Jun 2023 23:36:28 -0700 Subject: [PATCH] fix:Cast types Signed-off-by: luo-wei246 --- services/native/src/usb_right_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/native/src/usb_right_manager.cpp b/services/native/src/usb_right_manager.cpp index b89db1c0..2ef9cedb 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"); -- Gitee