sw/source/core/undo/unattr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3e76f5e7524dc93554b7575ce0bf12b47b9b38ce
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Aug 12 12:46:26 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Aug 20 13:41:14 2024 +0200

    cid#1608021 silence Overflowed integer argument
    
    Change-Id: Icba77c62877c552b1754dbe4e408e2d0a44d8e65
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172097
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx
index 7c185dfdd3da..c5fab8db1d2c 100644
--- a/sw/source/core/undo/unattr.cxx
+++ b/sw/source/core/undo/unattr.cxx
@@ -658,7 +658,7 @@ void SwUndoResetAttr::RedoImpl(::sw::UndoRedoContext & 
rContext)
         SwNodeIndex aIdx( rDoc.GetNodes(), m_nSttNode );
         SwPosition aPos( aIdx, aIdx.GetNode().GetContentNode(), m_nSttContent 
);
 
-        sal_uInt16 nCnt = SwDoc::GetCurTOXMark( aPos, aArr );
+        int nCnt = SwDoc::GetCurTOXMark( aPos, aArr );
         if( nCnt ) {
             if( 1 < nCnt ) {
                 // search for the right one

Reply via email to