summaryrefslogtreecommitdiff
path: root/libraries/podofo/podofo-0.8.1-casts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/podofo/podofo-0.8.1-casts.patch')
-rw-r--r--libraries/podofo/podofo-0.8.1-casts.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/podofo/podofo-0.8.1-casts.patch b/libraries/podofo/podofo-0.8.1-casts.patch
new file mode 100644
index 0000000000..4c2441b274
--- /dev/null
+++ b/libraries/podofo/podofo-0.8.1-casts.patch
@@ -0,0 +1,19 @@
+diff --git a/test/unit/EncryptTest.cpp b/test/unit/EncryptTest.cpp index e0b4801..3355175 100644
+--- a/test/unit/EncryptTest.cpp
++++ b/test/unit/EncryptTest.cpp
+@@ -326,9 +326,9 @@ void EncryptTest::testEnableAlgorithms()
+
+ PdfObject object;
+ object.GetDictionary().AddKey(PdfName("Filter"), PdfName("Standard"));
+- object.GetDictionary().AddKey(PdfName("V"), 4L);
+- object.GetDictionary().AddKey(PdfName("R"), 4L);
+- object.GetDictionary().AddKey(PdfName("P"), 1L);
++ object.GetDictionary().AddKey(PdfName("V"), static_cast<pdf_int64>(4L));
++ object.GetDictionary().AddKey(PdfName("R"), static_cast<pdf_int64>(4L));
++ object.GetDictionary().AddKey(PdfName("P"), static_cast<pdf_int64>(1L));
+ object.GetDictionary().AddKey(PdfName("O"), PdfString(""));
+ object.GetDictionary().AddKey(PdfName("U"), PdfString(""));
+
+
+
+