mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
zathura: import fix for 32-bit
This commit is contained in:
parent
698fc66035
commit
357c2ef001
2 changed files with 25 additions and 1 deletions
24
srcpkgs/zathura/patches/fix_type_mismatch.patch
Normal file
24
srcpkgs/zathura/patches/fix_type_mismatch.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
From 0c344affeaaae5b1360d0958fb23b3481f63945c
|
||||||
|
From: Adam Sampson <ats@offog.org>
|
||||||
|
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<length; i++) {
|
||||||
|
- unsigned long column = 1;
|
||||||
|
+ guint64 column = 1;
|
||||||
|
|
||||||
|
if (g_ascii_string_to_unsigned(tokens[i], 10, 1, i+1, &column, NULL)) {
|
||||||
|
settings[i] = (unsigned int)column;
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'zathura'
|
# Template file for 'zathura'
|
||||||
pkgname=zathura
|
pkgname=zathura
|
||||||
version=0.5.6
|
version=0.5.6
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dsynctex=enabled"
|
configure_args="-Dsynctex=enabled"
|
||||||
hostmakedepends="pkg-config gettext python3-Sphinx desktop-file-utils
|
hostmakedepends="pkg-config gettext python3-Sphinx desktop-file-utils
|
||||||
|
|
Loading…
Add table
Reference in a new issue