[poppler] poppler/Decrypt.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue May 22 22:27:15 UTC 2018


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

New commits:
commit 3ca2d43b7ddcca08bc026c6564f89ffbe0dde506
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed May 23 00:27:08 2018 +0200

    warning--

diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc
index d4ce0ce3..83d18824 100644
--- a/poppler/Decrypt.cc
+++ b/poppler/Decrypt.cc
@@ -321,7 +321,7 @@ BaseCryptStream::BaseCryptStream(Stream *strA, Guchar *fileKey, CryptAlgorithm a
   }
   switch (algo) {
   case cryptRC4:
-    if (likely(keyLength < (sizeof(objKey) - 4))) {
+    if (likely(keyLength < static_cast<int>(sizeof(objKey) - 4))) {
       objKey[keyLength] = objNum & 0xff;
       objKey[keyLength + 1] = (objNum >> 8) & 0xff;
       objKey[keyLength + 2] = (objNum >> 16) & 0xff;


More information about the poppler mailing list