[poppler] poppler/PDFDoc.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 1 23:16:00 UTC 2022


 poppler/PDFDoc.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f5aca2bea7481aecefd3062ab0f45820f24f4152
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Apr 2 01:12:37 2022 +0200

    Silence MSVC warning
    
    We know it's < 24576 so the cast is fine

diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index 20bb191f..dede5d8c 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -1989,7 +1989,7 @@ Goffset PDFDoc::getStartXRef(bool tryingToReconstruct)
             int segnum = 0;
             int maxXRefSearch = 24576;
             if (str->getLength() < maxXRefSearch) {
-                maxXRefSearch = str->getLength();
+                maxXRefSearch = static_cast<int>(str->getLength());
             }
             for (; (xrefSearchSize - 16) * segnum < maxXRefSearch; segnum++) {
                 str->setPos((xrefSearchSize - 16) * segnum + xrefSearchSize, -1);


More information about the poppler mailing list