cid#1607858 silence Overflowed constant

and

cid#1608350 Overflowed constant

Change-Id: I63ad25445df936821c896628b95686a535ef52cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174209
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2024-09-28 20:00:04 +01:00
parent ab0eb26f6a
commit ccbf0c4d6d
2 changed files with 2 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ void SvxBoundArgs::Add()
nBoolIdx = nBoolIdx - next;
nCount = nCount - next;
aBoolArr.erase( aBoolArr.begin() + nBoolIdx, aBoolArr.begin() + (nBoolIdx + next) );
if( nBoolIdx )
if (nBoolIdx > 0)
aBoolArr[ nBoolIdx - 1 ] = false;
#if OSL_DEBUG_LEVEL > 1
else

View File

@@ -2507,7 +2507,7 @@ static void ConvertEnhancedCustomShapeEquation(
OSL_ENSURE(false, "Attempted out of bound access to rEquationOrder of CustomShape (!)");
}
}
nMask <<= 1;
nMask = sal_uInt32(nMask << 1);
}
}
}