From 4a1f0396e2b053937259acaa10fa167e889bd8ec Mon Sep 17 00:00:00 2001 From: Mat Boehlke Date: Sat, 8 Jun 2024 12:05:23 -0500 Subject: [PATCH] zathura: import fix for 32-bit --- .../zathura/patches/fix_type_mismatch.patch | 24 +++++++++++++++++++ srcpkgs/zathura/template | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/zathura/patches/fix_type_mismatch.patch diff --git a/srcpkgs/zathura/patches/fix_type_mismatch.patch b/srcpkgs/zathura/patches/fix_type_mismatch.patch new file mode 100644 index 00000000000000..e817a20ca57dc2 --- /dev/null +++ b/srcpkgs/zathura/patches/fix_type_mismatch.patch @@ -0,0 +1,24 @@ +From 0c344affeaaae5b1360d0958fb23b3481f63945c +From: Adam Sampson +Date: Mon, 13 May 2024 01:07:10 +0100 +Subject: [PATCH] Fix type mismatch with g_ascii_string_to_unsigned + +The out_num argument is a guint64, which isn't the same as unsigned long +on some platforms (e.g. AArch32 Linux). +--- + zathura/utils.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/zathura/utils.c b/zathura/utils.c +index 2b3b39b3..bda6f86a 100644 +--- a/zathura/utils.c ++++ b/zathura/utils.c +@@ -321,7 +321,7 @@ parse_first_page_column_list(const char* first_page_column_list, unsigned int* s + unsigned int* settings = g_malloc_n(length, sizeof(unsigned int)); + + for (unsigned int i=0; i