代码告警修改

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2022-11-04 18:06:32 +08:00
parent 1be3fdf223
commit 3a2e59bbc2
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ string ResourceUtil::ComposeStrings(const vector<string> &contents, bool addNull
size += sizeof(char);
}
result.append(sizeof(char), (size & 0xff));
result.append(sizeof(char), (size >> 8));
result.append(sizeof(char), (size >> 8)); // Move 8 bits to the right
result.append(iter);
result.append(sizeof(char), '\0');
if (result.length() > UINT16_MAX) {