修改告警

Signed-off-by: luoweibin <luoweibin3@huawei.com>
Change-Id: I69651b04dfc640b0fd365c67272ab60432a5da2b
This commit is contained in:
luoweibin 2024-08-02 07:32:54 +00:00
parent d6b5963415
commit 55a30ac203
2 changed files with 4 additions and 4 deletions

View File

@ -1529,7 +1529,7 @@ float GridScrollLayoutAlgorithm::FillNewLineBackward(
--currentIndex;
break;
}
i = static_cast<uint32_t>(lastCross_) - 1;
i = static_cast<uint32_t>(lastCross_ - 1);
// Step3. Measure [GridItem]
LargeItemLineHeight(itemWrapper, hasNormalItem);

View File

@ -225,7 +225,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_Splice(
ArkUI_ListChildrenMainSize* option, int32_t index, int32_t deleteCount, int32_t addCount)
{
CHECK_NULL_RETURN(option, OHOS::Ace::ERROR_CODE_PARAM_INVALID);
if (index < 0 || deleteCount < 0 || addCount < 0 || option->mainSize.size() - 1 < static_cast<size_t>(index)) {
if (index < 0 || deleteCount < 0 || addCount < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) {
return OHOS::Ace::ERROR_CODE_PARAM_INVALID;
}
while (deleteCount > 0) {
@ -245,7 +245,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize(
ArkUI_ListChildrenMainSize* option, int32_t index, float mainSize)
{
CHECK_NULL_RETURN(option, OHOS::Ace::ERROR_CODE_PARAM_INVALID);
if (index < 0 || mainSize < 0 || option->mainSize.size() - 1 < static_cast<size_t>(index)) {
if (index < 0 || mainSize < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) {
return OHOS::Ace::ERROR_CODE_PARAM_INVALID;
}
option->mainSize[index] = mainSize;
@ -255,7 +255,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize(
float OH_ArkUI_ListChildrenMainSizeOption_GetMainSize(ArkUI_ListChildrenMainSize* option, int32_t index)
{
CHECK_NULL_RETURN(option, -1);
if (index < 0 || option->mainSize.size() - 1 < static_cast<uint32_t>(index)) {
if (index < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) {
return -1;
}
return option->mainSize[index];