sw/source/core/crsr/pam.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 09c0f1cfa63045c9ecdc9ed9190c26ef4acec865 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Nov 9 21:06:02 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Nov 11 11:14:59 2024 +0100 cid#1607347 silence Overflowed constant and cid#1607622 Overflowed constant Change-Id: I596708e75118a281fcd8166caf89f2aa741ab605 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176323 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 9230666f2e71..be32e6d47676 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -1138,7 +1138,7 @@ void GoStartSection( SwPosition * pPos ) { // jump to section's beginning SwNodes& rNodes = pPos->GetNodes(); - sal_uInt16 nLevel = SwNodes::GetSectionLevel( pPos->GetNode() ); + int nLevel = SwNodes::GetSectionLevel( pPos->GetNode() ); if( pPos->GetNode() < *rNodes.GetEndOfContent().StartOfSectionNode() ) { assert(nLevel > 0); @@ -1162,7 +1162,7 @@ void GoEndSection( SwPosition * pPos ) { // jump to section's beginning/end SwNodes& rNodes = pPos->GetNodes(); - sal_uInt16 nLevel = SwNodes::GetSectionLevel( pPos->GetNode() ); + int nLevel = SwNodes::GetSectionLevel( pPos->GetNode() ); if( pPos->GetNode() < *rNodes.GetEndOfContent().StartOfSectionNode() ) { assert(nLevel > 0);