cid#1607343 silence Overflowed constant

and

cid#1607447 Overflowed constant

Change-Id: If9be20f1e6a42343844c887c1e16d4c066ff3949
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173365
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-09-11 09:48:48 +01:00
parent 71ab742c8e
commit 7d30c7b938
2 changed files with 3 additions and 2 deletions

View file

@ -2076,7 +2076,7 @@ void ChartController::sendPopupRequest(std::u16string_view rCID, tools::Rectangl
// Get dimension index from CID
size_t nStartPos = rCID.rfind('.');
nStartPos++;
nStartPos = (nStartPos == std::u16string_view::npos) ? 0 : (nStartPos + 1);
sal_Int32 nEndPos = rCID.size();
std::u16string_view sDimensionIndex = rCID.substr(nStartPos, nEndPos - nStartPos);
sal_Int32 nDimensionIndex = o3tl::toInt32(sDimensionIndex);

View file

@ -3602,8 +3602,9 @@ void ScInterpreter::ScGetPivotData()
aFilters.resize(nFilterCount);
sal_uInt16 i = nFilterCount;
while (i-- > 0)
while (i > 0)
{
--i;
/* TODO: also, in case of numeric the entire filter match should
* not be on a (even if locale independent) formatted string down
* below in pDPObj->GetPivotData(). */