-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
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