diff --git a/services/implementation/src/device_manager_service_impl.cpp b/services/implementation/src/device_manager_service_impl.cpp index 03637f17fed1a37c264ce4b40828f2ae9394156f..0b8b831ace2c556c8e0a9071e0edbd2e8233e918 100644 --- a/services/implementation/src/device_manager_service_impl.cpp +++ b/services/implementation/src/device_manager_service_impl.cpp @@ -2763,7 +2763,7 @@ void DeviceManagerServiceImpl::GetBindCallerInfo(DmBindCallerInfo &bindCallerInf } std::string hostPkgLabel = GetBundleLable(pkgName); bindCallerInfo.userId = userId; - bindCallerInfo.tokenId = callingTokenId; + bindCallerInfo.tokenId = static_cast(callingTokenId); bindCallerInfo.bindLevel = bindLevel; bindCallerInfo.bundleName = bundleName; bindCallerInfo.hostPkgLabel = hostPkgLabel; diff --git a/services/service/src/relationshipsyncmgr/relationship_sync_mgr.cpp b/services/service/src/relationshipsyncmgr/relationship_sync_mgr.cpp index 02ca19f832ed9387fbd32243bd2e772d00876c60..8d9923d2deed253f76c0c6fffd7abff1b6e646b8 100644 --- a/services/service/src/relationshipsyncmgr/relationship_sync_mgr.cpp +++ b/services/service/src/relationshipsyncmgr/relationship_sync_mgr.cpp @@ -105,7 +105,7 @@ namespace { RelationShipChangeMsg::RelationShipChangeMsg() : type(RelationShipChangeType::TYPE_MAX), userId(UINT32_MAX), accountId(""), tokenId(UINT64_MAX), peerUdids({}), peerUdid(""), accountName(""), - syncUserIdFlag(false), userIdInfos({}), isNewEvent(false) + syncUserIdFlag(false), userIdInfos({}), isNewEvent(false), broadCastId(UINT8_MAX) { }