sw/source/uibase/utlui/numfmtlb.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 59cb37a210675d4269c2fcd48feeffe942538891 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Aug 11 17:25:53 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Aug 11 21:30:45 2024 +0200 cid#1606900 silence bogus Overflowed integer argument Change-Id: I227775c53ed041539ea8c6ab80827c7a6cc1db02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171735 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx index 9d42a5bb9efe..d30afecdce7b 100644 --- a/sw/source/uibase/utlui/numfmtlb.cxx +++ b/sw/source/uibase/utlui/numfmtlb.cxx @@ -252,7 +252,7 @@ void SwNumFormatBase::SetFormatType(const SvNumFormatType nFormatType) const sal_uInt32 nSysLongDateFormat = pFormatter->GetFormatIndex( NF_DATE_SYSTEM_LONG, m_eCurLanguage ); - for( tools::Long nIndex = eOffsetStart; nIndex <= eOffsetEnd; ++nIndex ) + for (int nIndex = eOffsetStart; nIndex <= eOffsetEnd; ++nIndex) { const sal_uInt32 nFormat = pFormatter->GetFormatIndex( static_cast<NfIndexTableOffset>(nIndex), m_eCurLanguage );