Fix sign-compare warning

Fix warning comparing long int to long unsigned int.
This commit is contained in:
Scott Kostyshak 2021-10-14 23:31:14 -04:00
parent f7de009b17
commit 1c70d98fc1

View 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);