<NME> okular-22.04.0.patchset
<BEF> ADDFILE
<MSG> okular: fix build for x86 arch

<DFF> @@ -0,0 +1,31 @@
+From 23a891995568559f60e018038b43ae65daa882b1 Mon Sep 17 00:00:00 2001
+From: Gerasim Troeglazov <3dEyes@gmail.com>
+Date: Wed, 11 May 2022 19:29:57 +1000
+Subject: Fix build for x86
+
+
+diff --git a/generators/tiff/generator_tiff.cpp b/generators/tiff/generator_tiff.cpp
+index 76ecb1d..f5ee8ee 100644
+--- a/generators/tiff/generator_tiff.cpp
++++ b/generators/tiff/generator_tiff.cpp
+@@ -243,7 +243,7 @@ QImage TIFFGenerator::image(Okular::PixmapRequest *request)
+         }
+ 
+         QImage image(width, height, QImage::Format_RGB32);
+-        uint32_t *data = reinterpret_cast<uint32_t *>(image.bits());
++        uint32 *data = reinterpret_cast<uint32 *>(image.bits());
+ 
+         // read data
+         if (TIFFReadRGBAImageOriented(d->tiff, width, height, data, orientation) != 0) {
+@@ -373,7 +373,7 @@ Okular::Document::PrintError TIFFGenerator::print(QPrinter &printer)
+         }
+ 
+         QImage image(width, height, QImage::Format_RGB32);
+-        uint32_t *data = reinterpret_cast<uint32_t *>(image.bits());
++        uint32 *data = reinterpret_cast<uint32 *>(image.bits());
+ 
+         // read data
+         if (TIFFReadRGBAImageOriented(d->tiff, width, height, data, ORIENTATION_TOPLEFT) != 0) {
+-- 
+2.30.2
+

{'addition_count': 31, 'commit_subject': 'okular: fix build for x86 arch', 'deletion_count': 0, 'file_extension': '.patchset', 'lang': '04', 'license': 'mit', 'repo_name': 'haikuports/haikuports'}