[poppler] poppler/DCTStream.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 1 22:04:17 UTC 2022


 poppler/DCTStream.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2cf97eaa7a8ed9b1305b2e132b8324d5fc3c582f
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Apr 2 00:00:33 2022 +0200

    Cast the proper addition
    
    apologies, it's late :/

diff --git a/poppler/DCTStream.cc b/poppler/DCTStream.cc
index 48dbb6d7..70dd0c73 100644
--- a/poppler/DCTStream.cc
+++ b/poppler/DCTStream.cc
@@ -232,8 +232,8 @@ int DCTStream::getChars(int nChars, unsigned char *buffer)
             left = nChars - i;
         }
         memcpy(buffer + i, current, left);
-        current += static_cast<int>(left);
-        i += left;
+        current += left;
+        i += static_cast<int>(left);
     }
     return nChars;
 }


More information about the poppler mailing list