[poppler] poppler/SecurityHandler.cc

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


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

New commits:
commit 846249c2102d12d74739555483232088f55610cf
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Apr 2 01:01:57 2022 +0200

    Make MSVC happy

diff --git a/poppler/SecurityHandler.cc b/poppler/SecurityHandler.cc
index b4635119..056ba3bd 100644
--- a/poppler/SecurityHandler.cc
+++ b/poppler/SecurityHandler.cc
@@ -135,7 +135,7 @@ StandardSecurityHandler::StandardSecurityHandler(PDFDoc *docA, Object *encryptDi
     Object userEncObj = encryptDictA->dictLookup("UE");
     Object permObj = encryptDictA->dictLookup("P");
     if (permObj.isInt64()) {
-        unsigned int permUint = permObj.getInt64();
+        unsigned int permUint = static_cast<unsigned int>(permObj.getInt64());
         int perms = permUint - UINT_MAX - 1;
         permObj = Object(perms);
     }


More information about the poppler mailing list