sw/source/uibase/utlui/content.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b9053154e21ef8e446564ec2edb792c0370a1df0
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 6 09:44:26 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 6 18:16:16 2026 +0100

    cid#1665122 silence Bad bit shift operation
    
    since the additional neg numbers were added to the enum at:
    
    commit a66fd0b6d9300a7def03658c1661cb6d5f609ab9
    Date:   Sun Dec 21 23:31:53 2025 -0900
    
        tdf#164864 SwNavigator should show index entries
    
    Change-Id: I9ca1f7b4f8afd2dbc0e4b0f2a3d561644ca36b36
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201113
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 1b3a6faaefe9..6778bd267310 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3598,8 +3598,8 @@ void SwContentTree::Display( bool bActive )
 
             for( ContentTypeId nCntType : o3tl::enumrange<ContentTypeId>() )
             {
-                // starts at 0 so ContentTypeId::UNKNOWN of -1 is skipped
-                assert(nCntType != ContentTypeId::UNKNOWN);
+                // starts at 0 so negative ContentTypeId values are skipped
+                assert(nCntType > ContentTypeId::UNKNOWN);
 
                 std::unique_ptr<SwContentType>& rpContentT = bActive ?
                                     m_aActiveContentArr[nCntType] :

Reply via email to