-
-
Save niner/2567d43baa26611b45464773f836df7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/PDF/COS/Type/XRef.rakumod b/lib/PDF/COS/Type/XRef.rakumod | |
index ba0c2d5..08c60d5 100644 | |
--- a/lib/PDF/COS/Type/XRef.rakumod | |
+++ b/lib/PDF/COS/Type/XRef.rakumod | |
@@ -119,7 +119,7 @@ class PDF::COS::Type::XRef | |
my array \decoded = $.decode( $encoded ); | |
my uint32 @index[+decoded;4]; | |
my array @decoded-segs; | |
- my uint $i = 0; | |
+ my int $i = 0; | |
for index.list -> $obj-num is rw, \num-entries { | |
die "/XRef stream content overflow" | |
diff --git a/lib/PDF/IO/Filter/RunLength.rakumod b/lib/PDF/IO/Filter/RunLength.rakumod | |
index 347d796..851b560 100644 | |
--- a/lib/PDF/IO/Filter/RunLength.rakumod | |
+++ b/lib/PDF/IO/Filter/RunLength.rakumod | |
@@ -14,7 +14,7 @@ class PDF::IO::Filter::RunLength { | |
my int $j = 0; | |
while $i <= n { | |
- my int $ind = 0; | |
+ my uint $ind = 0; | |
my $ind-pos = $j++; | |
my \ord = input[$i++]; | |
@out[$j++] = ord; | |
diff --git a/t/pdf/pdf.in-diffs b/t/pdf/pdf.in-diffs | |
index 1c42006..e69de29 100644 | |
Binary files a/t/pdf/pdf.in-diffs and b/t/pdf/pdf.in-diffs differ | |
diff --git a/t/update-encrypted.pdf b/t/update-encrypted.pdf | |
index 22256b7..475b6ab 100644 | |
Binary files a/t/update-encrypted.pdf and b/t/update-encrypted.pdf differ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment