diff --git a/services/distributedhardwarefwkservice/src/resourcemanager/capability_info_manager.cpp b/services/distributedhardwarefwkservice/src/resourcemanager/capability_info_manager.cpp index 057d5e545c0507fa5cee5dca271b4f2e5b08fe1b..53e836dc7ee1a7f512ba8eb5ea1bcfe322918099 100644 --- a/services/distributedhardwarefwkservice/src/resourcemanager/capability_info_manager.cpp +++ b/services/distributedhardwarefwkservice/src/resourcemanager/capability_info_manager.cpp @@ -518,12 +518,12 @@ bool CapabilityInfoManager::IsCapabilityMatchFilter(const std::shared_ptr(std::stoi(value)); + auto devType = static_cast(std::atoi(value.c_str())); isMatch = cap->GetDeviceType() == devType; break; } case CapabilityInfoFilter::FILTER_DH_TYPE: { - DHType dhType = (DHType)std::stoi(value); + DHType dhType = (DHType)std::atoi(value.c_str()); isMatch = cap->GetDHType() == dhType; break; }