!17370 无符号有符号混用问题整改

Merge pull request !17370 from zed/dev-mzj
This commit is contained in:
openharmony_ci 2024-11-22 06:48:00 +00:00 committed by Gitee
commit 4fca7e7f81
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -473,8 +473,8 @@ void MemoryManager::DumpGpuStats(DfxString& log, const Drawing::GPUContext* gpuC
std::string stat;
gpuContext->DumpGpuStats(stat);
int statIndex = 0;
int statLength = stat.length();
size_t statIndex = 0;
size_t statLength = stat.length();
while (statIndex < statLength) {
std::string statSubStr;
if (statLength - statIndex > DUPM_STRING_BUF_SIZE) {