From 04130e314b595f2efe1c5182343620215a1b17ed Mon Sep 17 00:00:00 2001 From: hellohyh001 Date: Thu, 21 Apr 2022 11:06:47 +0800 Subject: [PATCH] modify kora warning Signed-off-by: hellohyh001 --- frameworks/native/miscdevice/src/miscdevice_service_proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/miscdevice/src/miscdevice_service_proxy.cpp b/frameworks/native/miscdevice/src/miscdevice_service_proxy.cpp index bdf2275..0766778 100644 --- a/frameworks/native/miscdevice/src/miscdevice_service_proxy.cpp +++ b/frameworks/native/miscdevice/src/miscdevice_service_proxy.cpp @@ -305,7 +305,7 @@ std::vector MiscdeviceServiceProxy::GetLightSupportId() MISC_HILOGE("sendRequest failed, ret : %{public}d", ret); } int32_t setCount = reply.ReadInt32(); - if (setCount <= 0 || setCount > idVec.max_size()) { + if (setCount <= 0 || setCount > static_cast(idVec.max_size())) { MISC_HILOGE("setCount: %{public}d is invalid", setCount); return idVec; } -- Gitee