diff --git a/services/native/src/thermal_service.cpp b/services/native/src/thermal_service.cpp index ad462cf5eb9a29fb25def66b62fbd4e3b265000d..9a4d076fab4c7d5baacdbe749532a4ec0c02d7d2 100644 --- a/services/native/src/thermal_service.cpp +++ b/services/native/src/thermal_service.cpp @@ -529,7 +529,7 @@ int32_t ThermalService::GetThermalLevel(int32_t& level) THERMAL_HILOGD(COMP_SVC, "actionMgr_ is nullptr"); return ERR_FAIL; } - level = actionMgr_->GetThermalLevel(); + level = static_cast(actionMgr_->GetThermalLevel()); return ERR_OK; }