anquan_0617

Signed-off-by: yangziyong <nsyangziyong@huawei.com>
Change-Id: Ieab2c1f404bc829820eb920b3f021494374f0643
This commit is contained in:
yangziyong 2024-06-17 18:27:10 +08:00
parent 22a8880bfa
commit 41ecd773e7
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ void WaterFlowPattern::OnSectionChangedNow(int32_t start)
CHECK_NULL_VOID(host);
int32_t childUpdateIdx = host->GetChildrenUpdated();
if (sections_->IsSpecialUpdateCAPI(childUpdateIdx)) {
start += sections_->GetSectionInfo().size();
start += static_cast<int32_t>(sections_->GetSectionInfo().size());
}
info->InitSegments(sections_->GetSectionInfo(), start);
info->margins_.clear();

View File

@ -301,7 +301,7 @@ void ImageFileCache::ConvertToAstcAndWriteToFile(const std::string& fileCacheKey
removeVector.push_back(filePath);
auto infoIter = fileNameToFileInfoPos_[fileCacheKey];
cacheFileSize_ = cacheFileSize_ + packedSize - infoIter->fileSize;
cacheFileSize_ = cacheFileSize_ + static_cast<size_t>(packedSize) - infoIter->fileSize;
infoIter->fileName = astcFileName;
infoIter->fileSize = static_cast<uint64_t>(packedSize);
}