]> git.lyx.org Git - features.git/commitdiff
Fix sign-compare warning
authorScott Kostyshak <skostysh@lyx.org>
Fri, 15 Oct 2021 03:31:14 +0000 (23:31 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 15 Oct 2021 03:50:08 +0000 (23:50 -0400)
Fix warning comparing long int to long unsigned int.

src/output_docbook.cpp

index f35b82e8f2c8d235be73dcb7f5dbce27890a7624..71d3b83f2997812232b8d175a7a674fd5474dc61 100644 (file)
@@ -754,7 +754,7 @@ DocBookDocumentSectioning hasDocumentSectioning(ParagraphList const &paragraphs,
        bool documentHasSections = false;
 
        while (bpit < epit) {
-               LASSERT(bpit < paragraphs.size(), return make_tuple(documentHasSections, bpit));
+               LASSERT(static_cast<size_t>(bpit) < paragraphs.size(), return make_tuple(documentHasSections, bpit));
 
                Layout const &style = paragraphs[bpit].layout();
                documentHasSections |= isLayoutSectioningOrSimilar(style);