diff --git a/services/storage_manager/kits_impl/src/storage_statistics_n_exporter.cpp b/services/storage_manager/kits_impl/src/storage_statistics_n_exporter.cpp index 78e3df9fca631367d70b93ee25b66992b7f9e48d..1f63bd01452bfdcf1ddee629cf396e7675f6222d 100644 --- a/services/storage_manager/kits_impl/src/storage_statistics_n_exporter.cpp +++ b/services/storage_manager/kits_impl/src/storage_statistics_n_exporter.cpp @@ -184,7 +184,7 @@ napi_value GetBundleStats(napi_env env, napi_callback_info info) } std::string nameString = std::get<0>(result); int32_t index = std::get<1>(result); - int32_t statFlag = std::get<2>(result); + int32_t statFlag = static_cast(std::get<2>(result)); auto bundleStats = std::make_shared(); auto cbExec = [nameString, bundleStats, index, statFlag]() -> NError { int32_t errNum = DelayedSingleton::GetInstance()->GetBundleStats(nameString,