1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Ivan Trubach <mr.trubach@icloud.com>
3 Date: Sat, 27 Jul 2024 19:26:14 +0300
4 Subject: [PATCH 12/19] Fix char signedness for ARM and PowerPC
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Use signed char explicitly for ARM and PowerPC (defaults to unsigned).
10 Otherwise -1 integer literal is helpfully converted to char 255…
12 Derives from https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/xar/files/xar-1.8-arm-ppc.patch?id=cc91eb0f86043ae92c10cce55b326244bed3f061
16 2 files changed, 2 insertions(+), 2 deletions(-)
18 diff --git a/xar/lib/b64.c b/xar/lib/b64.c
19 index 6361acd..4ffc34c 100644
22 @@ -59,7 +59,7 @@ typedef enum _B64CommandCodes {
23 B64_IgnorableCharacter = -1
26 -static char b64revtb[256] = {
27 +static signed char b64revtb[256] = {
28 -3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /*0-15*/
29 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /*16-31*/
30 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, /*32-47*/
31 diff --git a/xar/src/xar.c b/xar/src/xar.c
32 index 9977e8a..1bceb63 100644
35 @@ -910,7 +910,7 @@ static void print_version() {
36 int main(int argc, char *argv[]) {
38 char *filename = NULL;
39 - char command = 0, c;
40 + signed char command = 0, c;
42 const char *tocfile = NULL;